[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [juk/frameworks] /: Port PlaylistCollection away from KInputDialog.
From: Michael Pyne <null () kde ! org>
Date: 2017-09-30 21:33:48
Message-ID: E1dyPOO-0007iK-MG () code ! kde ! org
[Download RAW message or body]
Git commit cf75c584d7ea43325f71364e1e8192bc48dbc754 by Michael Pyne.
Committed on 30/09/2017 at 19:53.
Pushed by mpyne into branch 'frameworks'.
Port PlaylistCollection away from KInputDialog.
M +4 -2 playlistcollection.cpp
https://commits.kde.org/juk/cf75c584d7ea43325f71364e1e8192bc48dbc754
diff --git a/playlistcollection.cpp b/playlistcollection.cpp
index 450d4f7..73ed343 100644
--- a/playlistcollection.cpp
+++ b/playlistcollection.cpp
@@ -19,7 +19,6 @@
#include <kurl.h>
#include <kiconloader.h>
-#include <kinputdialog.h>
#include <kmessagebox.h>
#include <kfiledialog.h>
#include <kactioncollection.h>
@@ -36,6 +35,7 @@
#include <QMutableListIterator>
#include <QObject>
#include <QPixmap>
+#include <QInputDialog>
#include <QStackedWidget>
#include <sys/types.h>
@@ -774,9 +774,11 @@ QString PlaylistCollection::playlistNameDialog(const QString &caption,
{
bool ok;
- QString name = KInputDialog::getText(
+ QString name = QInputDialog::getText(
+ m_playlistStack,
caption,
i18n("Please enter a name for this playlist:"),
+ QLineEdit::Normal,
forceUnique ? uniquePlaylistName(suggest) : suggest,
&ok);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic