Summary: | [PATCH] Remove deprecated KLineEditDlg | ||
---|---|---|---|
Product: | [Applications] kpat | Reporter: | Albert Astals Cid <aacid> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | The patch |
Description
Albert Astals Cid
2004-01-14 20:51:00 UTC
Created attachment 4168 [details]
The patch
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(); } - } } |