[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/apps/kdialog
From:       Darío Andrés Rodríguez <andresbajotierra () gmail ! co
Date:       2010-02-18 18:45:39
Message-ID: 1266518739.781322.23414.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1092340 by darioandres:

- QString::isNull -> QString::isEmpty


 M  +6 -6      kdialog.cpp  


--- trunk/KDE/kdebase/apps/kdialog/kdialog.cpp #1092339:1092340
@@ -494,7 +494,7 @@
 	}
 	Widgets::handleXGeometry(&dlg);
 	kapp->setTopWidget( &dlg );
-	dlg.setCaption(title.isNull() ? i18n("Open") : title);
+	dlg.setCaption(title.isEmpty() ? i18n("Open") : title);
 	dlg.exec();
 
         if (args->isSet("multiple")) {
@@ -535,7 +535,7 @@
 	dlg.setOperationMode( KFileDialog::Saving );
 	Widgets::handleXGeometry(&dlg);
 	kapp->setTopWidget( &dlg );
-	dlg.setCaption(title.isNull() ? i18n("Save As") : title);
+	dlg.setCaption(title.isEmpty() ? i18n("Save As") : title);
 	dlg.exec();
 
 	if ( args->isSet("getsaveurl") ) {
@@ -572,7 +572,7 @@
 	kapp->setTopWidget( &myDialog );
 
 	Widgets::handleXGeometry(&myDialog);
-	if ( !title.isNull() )
+	if ( !title.isEmpty() )
 	    myDialog.setCaption( title );
 
 	if ( myDialog.exec() == QDialog::Accepted )
@@ -606,7 +606,7 @@
 	}
 	Widgets::handleXGeometry(&dlg);
 	kapp->setTopWidget( &dlg );
-	dlg.setCaption(title.isNull() ? i18n("Open") : title);
+	dlg.setCaption(title.isEmpty() ? i18n("Open") : title);
 	dlg.exec();
 
         if (args->isSet("multiple")) {
@@ -667,7 +667,7 @@
 	KIconDialog dlg((QWidget*)0L);
 	kapp->setTopWidget( &dlg );
 	dlg.setup( group, context);
-	if (!title.isNull())
+	if (!title.isEmpty())
 	    dlg.setCaption(title);
 	Widgets::handleXGeometry(&dlg);
 
@@ -707,7 +707,7 @@
         }
         Widgets::handleXGeometry(&dlg);
         kapp->setTopWidget(&dlg);
-        dlg.setCaption(title.isNull() ? i18n("Choose Color") : title);
+        dlg.setCaption(title.isEmpty() ? i18n("Choose Color") : title);
 
         if (dlg.exec() == KColorDialog::Accepted) {
             QString result;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic