Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
kdebase4-wallpapers
kdm-wordbreak.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdm-wordbreak.diff of Package kdebase4-wallpapers
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 <KGuiItem> #include <KPushButton> +#include <KGlobalSettings> #include <QApplication> #include <QDesktopWidget> @@ -151,6 +152,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->setWordWrap( true ); KPushButton *button = new KPushButton( KStandardGuiItem::ok(), this ); button->setDefault( true ); button->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor