summaryrefslogtreecommitdiff
path: root/tools/qtconfig
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-02-28 19:02:27 +0100
committerOlivier Goffart <olivier.goffart@nokia.com>2011-02-28 19:07:42 +0100
commit654b0866a4a189d428416a8daae80844ad4e280e (patch)
tree3eb496092e93d7d3fb7355b21c5351badb7d792f /tools/qtconfig
parent5fe25728c0ebb04c3fd2958d902cc58d2064b84d (diff)
downloadqt4-tools-654b0866a4a189d428416a8daae80844ad4e280e.tar.gz
Fix errors and warnings in qtconfig.
That occured with the removal of the qt3support dependency. The setIcon call was added after the merge request was created.
Diffstat (limited to 'tools/qtconfig')
-rw-r--r--tools/qtconfig/colorbutton.cpp2
-rw-r--r--tools/qtconfig/mainwindow.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/qtconfig/colorbutton.cpp b/tools/qtconfig/colorbutton.cpp
index 0b0fefcc2a..33c1b25df7 100644
--- a/tools/qtconfig/colorbutton.cpp
+++ b/tools/qtconfig/colorbutton.cpp
@@ -53,8 +53,8 @@ QT_BEGIN_NAMESPACE
ColorButton::ColorButton(QWidget *parent)
: QAbstractButton(parent)
- , mousepressed(false)
, col(Qt::black)
+ , mousepressed(false)
{
setAcceptDrops(true);
connect(this, SIGNAL(clicked()), SLOT(changeColor()));
diff --git a/tools/qtconfig/mainwindow.cpp b/tools/qtconfig/mainwindow.cpp
index 7bff03d125..629574f339 100644
--- a/tools/qtconfig/mainwindow.cpp
+++ b/tools/qtconfig/mainwindow.cpp
@@ -233,7 +233,7 @@ MainWindow::MainWindow()
modified = true;
desktopThemeName = tr("Desktop Settings (Default)");
- setIcon(QPixmap(":/trolltech/qtconfig/images/appicon.png"));
+ setWindowIcon(QPixmap(":/trolltech/qtconfig/images/appicon.png"));
QStringList gstyles = QStyleFactory::keys();
gstyles.sort();
ui->guiStyleCombo->addItem(desktopThemeName);