Репозитории ALT
5.1: | 3.5.10-alt20.M51.2 |
4.1: | 3.5.10-alt16.M41.1 |
4.0: | 3.5.9-alt1.M40.1 |
3.0: | 3.4.1-alt12 |
+updates: | 3.4.1-alt12.1.M30 |
+backports: | 3.5.6-alt7.0.M30 |
Группа :: Графические оболочки/KDE
Пакет: kdebase
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: kdm-wordbreak.diff
Скачать
Скачать
Index: kdm/kfrontend/kfdialog.cpp
================================================================================
--- kdm/kfrontend/kfdialog.cpp
+++ kdm/kfrontend/kfdialog.cpp
@@ -28,6 +28,7 @@
#include <klocale.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
+#include <kglobalsettings.h>
#include <qlabel.h>
#include <qlayout.h>
@@ -137,6 +138,9 @@
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 ) );