mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
3ef023d76c
commit
fa7325a206
4 changed files with 8 additions and 8 deletions
|
@ -107,8 +107,8 @@ QGraphicsWidget *DictApplet::graphicsWidget()
|
|||
m_wordEdit->show();
|
||||
|
||||
m_defBrowser = new Plasma::TextBrowser();
|
||||
m_defBrowser->nativeWidget()->setNotifyClick(true);
|
||||
connect(m_defBrowser->nativeWidget(),SIGNAL(urlClick(QString)),this,SLOT(linkDefine(QString)));
|
||||
m_defBrowser->nativeWidget()->setOpenLinks(true);
|
||||
connect(m_defBrowser->nativeWidget(),SIGNAL(anchorClicked(QUrl)),this,SLOT(linkDefine(QUrl)));
|
||||
syncTheme();
|
||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(updateColors()));
|
||||
m_defBrowser->hide();
|
||||
|
@ -144,7 +144,7 @@ QGraphicsWidget *DictApplet::graphicsWidget()
|
|||
|
||||
dataEngine(m_dataEngine)->connectSource(QLatin1String( "list-dictionaries" ), this);
|
||||
|
||||
//connect(m_defEdit, SIGNAL(linkActivated(QString)), this, SLOT(linkDefine(QString)));
|
||||
//connect(m_defEdit, SIGNAL(anchorClicked(QUrl)), this, SLOT(linkDefine(QUrl)));
|
||||
|
||||
// This is the fix for links/selecting text
|
||||
//QGraphicsItem::GraphicsItemFlags flags = m_defEdit->flags();
|
||||
|
@ -196,10 +196,10 @@ void DictApplet::configChanged()
|
|||
}
|
||||
}
|
||||
|
||||
void DictApplet::linkDefine(const QString &text)
|
||||
void DictApplet::linkDefine(const QUrl &url)
|
||||
{
|
||||
//kDebug() <<"ACTIVATED";
|
||||
m_wordEdit->setText(text);
|
||||
m_wordEdit->setText(url.toString());
|
||||
define();
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ class DictApplet: public Plasma::PopupApplet
|
|||
public slots:
|
||||
void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data);
|
||||
void autoDefine(const QString &word);
|
||||
void linkDefine(const QString &word);
|
||||
void linkDefine(const QUrl &url);
|
||||
void configChanged();
|
||||
|
||||
protected slots:
|
||||
|
|
|
@ -180,7 +180,7 @@ void TaskGroupItem::activateOrIconify()
|
|||
foreach (AbstractGroupableItem * item, items) {
|
||||
TaskManager::TaskItem *task = qobject_cast<TaskManager::TaskItem *>(item);
|
||||
if (task) {
|
||||
if (task->task()->isIconified()) {
|
||||
if (task->task()->isMinimized()) {
|
||||
++ iconified;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
#include <QTextBrowser>
|
||||
#include <QDateTime>
|
||||
#include <QEvent>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
#include <QSignalMapper>
|
||||
|
|
Loading…
Add table
Reference in a new issue