summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-11 22:23:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-11 22:23:36 +0000
commita5bdf0c27947342c49b14177ca116a1a35ce1f7e (patch)
treeb0e99c8064277721e4cd88cf08208065719d40e4
parenta3d5ebbdd70583289b96a74e86dd88f602bea31a (diff)
downloadtdebase-a5bdf0c27947342c49b14177ca116a1a35ce1f7e.tar.gz
tdebase-a5bdf0c27947342c49b14177ca116a1a35ce1f7e.zip
Fix a few practical usability GUI problems in the window opacity popup menu
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246528 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kwin/useractions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kwin/useractions.cpp b/kwin/useractions.cpp
index 9e8b5d5a7..11bcb3342 100644
--- a/kwin/useractions.cpp
+++ b/kwin/useractions.cpp
@@ -79,7 +79,7 @@ TQPopupMenu* Workspace::clientPopup()
TQVBox *transBox = new TQVBox(trans_popup);
transButton = new TQPushButton(transBox, "transButton");
TQToolTip::add(transButton, i18n("Reset opacity to default value"));
- transSlider = new TQSlider(0, 100, 1, 100, Qt::Vertical, transBox, "transSlider");
+ transSlider = new TQSlider(0, 100, 1, 100, Qt::Horizontal, transBox, "transSlider");
TQToolTip::add(transSlider, i18n("Slide this to set the window's opacity"));
connect(transButton, TQT_SIGNAL(clicked()), TQT_SLOT(resetClientOpacity()));
connect(transButton, TQT_SIGNAL(clicked()), trans_popup, TQT_SLOT(hide()));
@@ -122,13 +122,13 @@ void Workspace::setTransButtonText(int value)
{
value = 100 - value;
if(value < 0)
- transButton->setText("000 %");
+ transButton->setText(" 0 %");
else if (value >= 100 )
transButton->setText("100 %");
else if(value < 10)
- transButton->setText("00"+TQString::number(value)+" %");
+ transButton->setText(" "+TQString::number(value)+" %");
else if(value < 100)
- transButton->setText("0"+TQString::number(value)+" %");
+ transButton->setText(" "+TQString::number(value)+" %");
}
void Workspace::resetClientOpacity()