summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/kdm-wordbreak.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
committerRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
commit93c66bf8bb8ac0124ae1800cbaaeb814742bfac5 (patch)
tree2551422a7981b35684110fae090223b7a1b6d73f /opensuse/tdebase/kdm-wordbreak.diff
parent425774d7d1d663e08bb06050924f2eeca9147bba (diff)
downloadtde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.tar.gz
tde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.zip
dbus-1-tqt -> libdbus-tqt-1-0 AND tdelibs import (unchanged)
Diffstat (limited to 'opensuse/tdebase/kdm-wordbreak.diff')
-rw-r--r--opensuse/tdebase/kdm-wordbreak.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/opensuse/tdebase/kdm-wordbreak.diff b/opensuse/tdebase/kdm-wordbreak.diff
new file mode 100644
index 000000000..9c50ecdc9
--- /dev/null
+++ b/opensuse/tdebase/kdm-wordbreak.diff
@@ -0,0 +1,22 @@
+Index: kdm/kfrontend/kfdialog.cpp
+===================================================================
+--- kdm/kfrontend/kfdialog.cpp.orig
++++ kdm/kfrontend/kfdialog.cpp
+@@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fi
+ #include <klocale.h>
+ #include <kpushbutton.h>
+ #include <kstdguiitem.h>
++#include <kglobalsettings.h>
+
+ #include <qlabel.h>
+ #include <qlayout.h>
+@@ -137,6 +138,9 @@ KFMsgBox::KFMsgBox( QWidget *parent, QMe
+ QLabel *label1 = new QLabel( this );
+ label1->setPixmap( QMessageBox::standardIcon( type ) );
+ QLabel *label2 = new QLabel( text, this );
++ QRect d = KGlobalSettings::desktopGeometry(this);
++ if ( label2->fontMetrics().size( 0, text).width() > d.width() * 3 / 5)
++ label2->setAlignment(Qt::WordBreak | Qt::AlignAuto );
+ KPushButton *button = new KPushButton( KStdGuiItem::ok(), this );
+ button->setDefault( true );
+ button->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) );