summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-03-29 14:02:00 +0200
committerPali Roh├ír <[email protected]>2017-12-22 09:10:26 +0100
commit78d8b0041d8633775ac3ac55548c6c1ca281f8a4 (patch)
tree8e436c4fb1234d4b2fae007cd1d5e19f2a07acc5
parent6f71603689e478f001bafe3baaa89ce720a5f029 (diff)
Fix compile translator. Not sure that it will work fine
-rw-r--r--plugins/translator/translatorguiclient.cpp5
-rw-r--r--plugins/translator/translatorplugin.cpp3
-rw-r--r--plugins/translator/translatorpreferences.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/translator/translatorguiclient.cpp b/plugins/translator/translatorguiclient.cpp
index 8aa0337..329a7a2 100644
--- a/plugins/translator/translatorguiclient.cpp
+++ b/plugins/translator/translatorguiclient.cpp
@@ -22,7 +22,6 @@
#include <qvariant.h>
#include <kdebug.h>
-#include <kaction.h>
#include <klocale.h>
#include <kicon.h>
#include <QKeySequence>
@@ -46,10 +45,10 @@ TranslatorGUIClient::TranslatorGUIClient(Kopete::ChatSession *parent)
m_manager = parent;
- KAction *translate = new KAction(KIcon("preferences-desktop-locale"), i18n("Translate"), this);
+ QAction *translate = new QAction(QIcon::fromTheme("preferences-desktop-locale"), i18n("Translate"), this);
actionCollection()->addAction("translateCurrentMessage", translate);
connect(translate, SIGNAL(triggered(bool)), this, SLOT(slotTranslateChat()));
- translate->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_T));
+ actionCollection()->setDefaultShortcut(translate, QKeySequence(Qt::CTRL + Qt::Key_T));
setXMLFile("translatorchatui.rc");
}
diff --git a/plugins/translator/translatorplugin.cpp b/plugins/translator/translatorplugin.cpp
index d2b373c..04e8c47 100644
--- a/plugins/translator/translatorplugin.cpp
+++ b/plugins/translator/translatorplugin.cpp
@@ -29,7 +29,6 @@
#include <qmetaobject.h>
#include <kdebug.h>
-#include <kaction.h>
#include <kgenericfactory.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -72,7 +71,7 @@ TranslatorPlugin::TranslatorPlugin(QObject *parent, const QVariantList & /* args
connect(Kopete::ChatSessionManager::self(), SIGNAL(chatSessionCreated(Kopete::ChatSession *)),
this, SLOT(slotNewKMM(Kopete::ChatSession *)));
- m_actionLanguage = new KSelectAction(KIcon("preferences-desktop-locale"), i18n("Set &Language"), this);
+ m_actionLanguage = new KSelectAction(QIcon::fromTheme("preferences-desktop-locale"), i18n("Set &Language"), this);
actionCollection()->addAction("contactLanguage", m_actionLanguage);
connect(m_actionLanguage, SIGNAL(triggered(int)), this, SLOT(slotSetLanguage()));
connect(Kopete::ContactList::self(), SIGNAL(metaContactSelected(bool)), this, SLOT(slotSelectionChanged(bool)));
diff --git a/plugins/translator/translatorpreferences.cpp b/plugins/translator/translatorpreferences.cpp
index 24eff8e..a152d45 100644
--- a/plugins/translator/translatorpreferences.cpp
+++ b/plugins/translator/translatorpreferences.cpp
@@ -122,3 +122,5 @@ void TranslatorPreferences::slotShowPreviousChanged(bool on)
Q_UNUSED(on);
emit KCModule::changed(true);
}
+
+#include "translatorpreferences.moc"