[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/utils/kpager
From: Pino Toscano <pino () kde ! org>
Date: 2011-01-04 18:54:08
Message-ID: 20110104185408.EAF6F3E1F7 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1211729 by pino:
hide the "show background" option and its effect
it does nothing at the moment (and cannot be fixed easily), so hide the checkbox and \
make kpager behave as it would be always off
M +3 -0 config.cpp
M +2 -0 desktop.cpp
--- trunk/extragear/utils/kpager/config.cpp #1211728:1211729
@@ -37,6 +37,9 @@
QWidget *main = new QWidget(this);
m_ui.setupUi(main);
+#ifndef CAN_LOAD_BACKGROUND
+ m_ui.kcfg_showBackground->hide();
+#endif
main->layout()->setMargin(0);
KPageWidgetItem *item = addPage(main, "main");
item->setHeader(""); // hide the header
--- trunk/extragear/utils/kpager/desktop.cpp #1211728:1211729
@@ -406,6 +406,7 @@
// p.setPen(Qt::black);
// p.drawRect(rect());
+#ifdef CAN_LOAD_BACKGROUND
if (Settings::showBackground())
{
if ( ( !m_isCommon && !m_bgSmallPixmap )
@@ -427,6 +428,7 @@
else p.fillRect(rect(), Qt::gray);
}
else
+#endif
p.fillRect(rect(), palette().brush(QPalette::Mid));
// set in/active pen
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic