Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 78d8b004 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Fix compile translator. Not sure that it will work fine

parent 6f716036
......@@ -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");
}
......
......@@ -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)));
......
......@@ -122,3 +122,5 @@ void TranslatorPreferences::slotShowPreviousChanged(bool on)
Q_UNUSED(on);
emit KCModule::changed(true);
}
#include "translatorpreferences.moc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment