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

List:       kde-commits
Subject:    kdebase/kcontrol/filetypes
From:       Nadeem Hasan <nhasan () nadmm ! com>
Date:       2003-06-08 14:18:42
[Download RAW message or body]

CVS commit by nhasan: 

s/KLineEditDlg/KInputDialog/


  M +12 -12    filetypedetails.cpp   1.22


--- kdebase/kcontrol/filetypes/filetypedetails.cpp  #1.21:1.22
@@ -7,5 +7,5 @@
 #include <kicondialog.h>
 #include <klineedit.h>
-#include <klineeditdlg.h>
+#include <kinputdialog.h>
 #include <klocale.h>
 
@@ -152,15 +152,15 @@ void FileTypeDetails::addExtension()
   if ( !m_item )
     return;
-  KLineEditDlg m(i18n("Extension:"), "*.", this);
-  m.setCaption( i18n("Add New Extension") );
-  if (m.exec()) {
-    if (!m.text().isEmpty()) {
-      extensionLB->insertItem(m.text());
+
+  bool ok;
+  QString ext = KInputDialog::getText( i18n( "Add New Extension" ),
+    i18n( "Extension:" ), "*.", &ok, this );
+  if (ok) {
+    extensionLB->insertItem(ext);
       QStringList patt = m_item->patterns();
-      patt += m.text();
+    patt += ext;
       m_item->setPatterns(patt);
       updateRemoveButton();
       emit changed(true);
-    }
   }
 }


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

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