summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-18 06:46:14 +0200
committerPali Roh├ír <[email protected]>2017-12-22 09:10:29 +0100
commitb8f76515610398b87ef3c9a881401b864365de62 (patch)
tree8810bcb8bab8c4a03151392bb77bff992b7ae666
parent0cc988362133df71e7d3130e9d46966183a3de3a (diff)
Port to qinputdialog
-rw-r--r--protocols/groupwise/gwaccount.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/groupwise/gwaccount.cpp b/protocols/groupwise/gwaccount.cpp
index b58b75a..43220e9 100644
--- a/protocols/groupwise/gwaccount.cpp
+++ b/protocols/groupwise/gwaccount.cpp
@@ -27,7 +27,7 @@
#include <kaboutdata.h>
#include <kconfig.h>
#include <kdebug.h>
-#include <kinputdialog.h>
+#include <qinputdialog.h>
#include <KLocalizedString>
#include <kmessagebox.h>
#include <knotification.h>
@@ -1454,11 +1454,9 @@ void GroupWiseAccount::slotLeavingConference( GroupWiseChatSession * sess )
void GroupWiseAccount::slotSetAutoReply()
{
bool ok;
- QRegExp rx( ".*" );
- QRegExpValidator validator( rx, this );
- QString newAutoReply = KInputDialog::getText( i18n( "Enter Auto-Reply Message" ),
- i18n( "Please enter an Auto-Reply message that will be shown to users who message you while Away or Busy" ), configGroup()->readEntry( "AutoReply", "" ),
- &ok, Kopete::UI::Global::mainWidget(), &validator );
+ QString newAutoReply = QInputDialog::getText(Kopete::UI::Global::mainWidget(), i18n( "Enter Auto-Reply Message" ),
+ i18n( "Please enter an Auto-Reply message that will be shown to users who message you while Away or Busy" ), QLineEdit::Normal, configGroup()->readEntry( "AutoReply", "" ),
+ &ok);
if ( ok )
configGroup()->writeEntry( "AutoReply", newAutoReply );
}