Bug 72659 - [PATCH] Remove deprecated KLineEditDlg
Summary: [PATCH] Remove deprecated KLineEditDlg
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 20:51 UTC by Albert Astals Cid
Modified: 2004-01-19 21:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
The patch (1.20 KB, patch)
2004-01-14 20:51 UTC, Albert Astals Cid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Astals Cid 2004-01-14 20:51:00 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Hi, this patch removes deprecated KLineEditDlg in kpatience.
Comment 1 Albert Astals Cid 2004-01-14 20:51:51 UTC
Created attachment 4168 [details]
The patch
Comment 2 Stephan Kulow 2004-01-19 21:41:09 UTC
Subject: kdegames/kpat

CVS commit by coolo: 

applying patch to remove deprecated KLineEditDlg
CCMAIL: 72659-done@bugs.kde.org


  M +5 -10     pwidget.cpp   1.103


--- kdegames/kpat/pwidget.cpp  #1.102:1.103
@@ -33,5 +33,5 @@
 #include "cardmaps.h"
 #include <kcarddialog.h>
-#include <klineeditdlg.h>
+#include <kinputdialog.h>
 #include <kstandarddirs.h>
 #include <kfiledialog.h>
@@ -378,15 +378,10 @@ void pWidget::setBackSide(const QString 
 void pWidget::chooseGame()
 {
-    KLineEditDlg dlg(i18n("Enter a game number (FreeCell deals are the same as in the FreeCell FAQ):"), QString::number(dill->gameNumber()), this);
-    dlg.setCaption(i18n("Game Number"));
-
     bool ok;
-    if (dlg.exec()) {
-        long number = dlg.text().toLong(&ok);
+    long number = KInputDialog::getText(i18n("Game Number"), i18n("Enter a game number (FreeCell deals are the same as in the FreeCell FAQ):"), QString::number(dill->gameNumber()), 0, this).toLong(&ok);
         if (ok) {
             dill->setGameNumber(number);
             restart();
         }
-    }
 }