aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-01-12 09:43:33 +0000
committerGravatar Fabio Bas2010-01-12 09:43:33 +0000
commit37752b9ae875c2e78d31e54a43d4baa247554f67 (patch)
tree9712664817685a4be013b942db27d87bc5f1a794 /src/modules
parentFixed a crash on exit after using the alias editor. Bad vtable. (diff)
downloadKVIrc-37752b9ae875c2e78d31e54a43d4baa247554f67.tar.gz
KVIrc-37752b9ae875c2e78d31e54a43d4baa247554f67.tar.bz2
KVIrc-37752b9ae875c2e78d31e54a43d4baa247554f67.zip
fixed #688
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3832 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/setup/setupwizard.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/modules/setup/setupwizard.cpp b/src/modules/setup/setupwizard.cpp
index b23a934c0..0e55e2c8f 100644
--- a/src/modules/setup/setupwizard.cpp
+++ b/src/modules/setup/setupwizard.cpp
@@ -110,19 +110,16 @@ KviSetupPage::KviSetupPage(KviSetupWizard * w)
QLabel * l = new QLabel(m_pVBox);
l->setAlignment(Qt::AlignLeft | Qt::AlignTop);
- /*
- QString szHeader = "<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"margin:0px;padding:0px;\" width=\"100%\"><tr><td bgcolor=\"#303030\">" \
- "<h1><font color=\"#FFFFFF\">KVIrc " KVI_VERSION "</font></h1>" \
- "</td></tr></table>";
- */
- QString szHeader = "<h1><font color=\"#FFFFFF\">&nbsp;KVIrc " KVI_VERSION "</font></h1>";
- l->setText(szHeader);
+
+ QPalette pal=l->palette();
+ pal.setColor(l->backgroundRole(), QColor(48,48,48)); //aka #303030
+ pal.setColor(l->foregroundRole(), QColor(255,255,255)); //aka #FFFFFF
+ l->setPalette(pal);
+ l->setText("<h1>&nbsp;KVIrc " KVI_VERSION "</h1>");
l->setFrameStyle(QFrame::Sunken | QFrame::StyledPanel);
l->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
+ l->setAutoFillBackground(true);
l->setMargin(0);
- QPalette p = l->palette();
- p.setColor(backgroundRole(), QColor(48,48,48));
- l->setPalette(p);
m_pTextLabel = new QLabel(m_pVBox);
m_pTextLabel->setWordWrap(true);