summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_text_qfont.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-29 13:48:06 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-29 13:55:56 (GMT)
commit58fa04d1ac4b961bae11dd2261861201823322cc (patch)
treee8621f2aaee3f69e5da00a8d64a4f89f62c1af67 /doc/src/snippets/code/src_gui_text_qfont.cpp
parente3d744270d6ae4f1e893784e3e064d47e25c1fbe (diff)
downloadQt-58fa04d1ac4b961bae11dd2261861201823322cc.zip
Qt-58fa04d1ac4b961bae11dd2261861201823322cc.tar.gz
Qt-58fa04d1ac4b961bae11dd2261861201823322cc.tar.bz2
Remove icon when setting an empty window icon on X11.
We used to leave _NET_WM_ICON set forever, and removing an IconPixmapHint from WMHints didn't work properly. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'doc/src/snippets/code/src_gui_text_qfont.cpp')
0 files changed, 0 insertions, 0 deletions
eral Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] socket->connectToHost("imap", 143); if (socket->waitForConnected(1000)) qDebug("Connected!"); //! [0] //! [1] socket->disconnectFromHost(); if (socket->state() == QAbstractSocket::UnconnectedState || socket->waitForDisconnected(1000)) qDebug("Disconnected!"); //! [1] //! [2] // This slot is connected to QAbstractSocket::readyRead() void SocketClass::readyReadSlot() { while (!socket.atEnd()) { QByteArray data = socket.read(100); .... } } //! [2] //! [3] socket->setProxy(QNetworkProxy::NoProxy); //! [3]