mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kdeplasma-addons: call the base class init() method in applets
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
15cec03ff6
commit
5a47c9280a
6 changed files with 21 additions and 9 deletions
|
@ -35,7 +35,7 @@
|
|||
#include <KIcon>
|
||||
#include <KBookmarkMenu>
|
||||
#include <KBookmarkGroup>
|
||||
// Qt
|
||||
// Katie
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QGraphicsLinearLayout>
|
||||
|
||||
|
@ -58,6 +58,8 @@ BookmarksPlasmoid::BookmarksPlasmoid(QObject* parent, const QVariantList& args)
|
|||
|
||||
void BookmarksPlasmoid::init()
|
||||
{
|
||||
Applet::init();
|
||||
|
||||
mBookmarkManager = KBookmarkManager::userBookmarksManager();
|
||||
mBookmarkManager->setEditorOptions(name(), true);
|
||||
connect(mBookmarkManager, SIGNAL(changed(QString,QString)), SLOT(onBookmarksChanged(QString)));
|
||||
|
|
|
@ -118,6 +118,8 @@ Frame::~Frame()
|
|||
|
||||
void Frame::init()
|
||||
{
|
||||
Applet::init();
|
||||
|
||||
bool frameReceivedUrlArgs = false;
|
||||
if (!m_currentUrl.isEmpty()) {
|
||||
frameReceivedUrlArgs = true;
|
||||
|
|
|
@ -274,6 +274,8 @@ Kolourpicker::~Kolourpicker()
|
|||
|
||||
void Kolourpicker::init()
|
||||
{
|
||||
Plasma::Applet::init();
|
||||
|
||||
configChanged();
|
||||
}
|
||||
|
||||
|
|
|
@ -187,6 +187,8 @@ KonsoleProfilesApplet::~KonsoleProfilesApplet()
|
|||
|
||||
void KonsoleProfilesApplet::init()
|
||||
{
|
||||
Plasma::PopupApplet::init();
|
||||
|
||||
QTimer::singleShot(500, m_konsoleprofileswidget, SLOT(slotUpdateLayout()));
|
||||
}
|
||||
|
||||
|
|
|
@ -42,10 +42,10 @@ K_EXPORT_PLASMA_APPLET(spellcheck, SpellCheck)
|
|||
|
||||
SpellCheck::SpellCheck(QObject *parent, const QVariantList &args)
|
||||
: Plasma::Applet(parent, args),
|
||||
m_textEdit(NULL),
|
||||
m_spellingDialog(NULL),
|
||||
m_dictionaryComboBox(NULL),
|
||||
m_dragTimer(0)
|
||||
m_textEdit(nullptr),
|
||||
m_spellingDialog(nullptr),
|
||||
m_dictionaryComboBox(nullptr),
|
||||
m_dragTimer(0)
|
||||
{
|
||||
KGlobal::locale()->insertCatalog("spellcheck");
|
||||
setAspectRatioMode(Plasma::ConstrainedSquare);
|
||||
|
@ -62,6 +62,8 @@ SpellCheck::~SpellCheck()
|
|||
|
||||
void SpellCheck::init()
|
||||
{
|
||||
Plasma::Applet::init();
|
||||
|
||||
Plasma::IconWidget *icon = new Plasma::IconWidget(KIcon("tools-check-spelling"), QString(), this);
|
||||
|
||||
registerAsDragHandle(icon);
|
||||
|
|
|
@ -39,10 +39,10 @@
|
|||
|
||||
Timer::Timer(QObject *parent, const QVariantList &args)
|
||||
: Plasma::Applet(parent, args),
|
||||
m_seconds(0),
|
||||
m_startingSeconds(0),
|
||||
m_running(false),
|
||||
m_blinkAnim(0)
|
||||
m_seconds(0),
|
||||
m_startingSeconds(0),
|
||||
m_running(false),
|
||||
m_blinkAnim(0)
|
||||
{
|
||||
resize(315, 125);
|
||||
setHasConfigurationInterface(true);
|
||||
|
@ -56,6 +56,8 @@ Timer::~Timer()
|
|||
|
||||
void Timer::init()
|
||||
{
|
||||
Plasma::Applet::init();
|
||||
|
||||
m_svg = new Plasma::Svg(this);
|
||||
m_svg->setImagePath("widgets/timer");
|
||||
m_svg->setContainsMultipleImages(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue