mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
kdeplasma-addons: remove redundant destructor and method declaration
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d493613343
commit
15cec03ff6
5 changed files with 2 additions and 12 deletions
|
@ -61,10 +61,6 @@ UnitConverter::~UnitConverter()
|
||||||
cg.writeEntry("value", m_pTxtValue1->text());
|
cg.writeEntry("value", m_pTxtValue1->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
void UnitConverter::init()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void UnitConverter::sltCategoryChanged(int index)
|
void UnitConverter::sltCategoryChanged(int index)
|
||||||
{
|
{
|
||||||
m_pCmbUnit1->clear();
|
m_pCmbUnit1->clear();
|
||||||
|
|
|
@ -47,7 +47,6 @@ class UnitConverter : public Plasma::PopupApplet
|
||||||
UnitConverter(QObject *parent, const QVariantList &args);
|
UnitConverter(QObject *parent, const QVariantList &args);
|
||||||
~UnitConverter();
|
~UnitConverter();
|
||||||
|
|
||||||
virtual void init();
|
|
||||||
virtual QGraphicsWidget *graphicsWidget();
|
virtual QGraphicsWidget *graphicsWidget();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
@ -38,7 +38,7 @@ static const QString timeWord = i18nc("Note this is a KRunner keyword", timeWord
|
||||||
DateTimeRunner::DateTimeRunner(QObject *parent, const QVariantList &args)
|
DateTimeRunner::DateTimeRunner(QObject *parent, const QVariantList &args)
|
||||||
: Plasma::AbstractRunner(parent, args)
|
: Plasma::AbstractRunner(parent, args)
|
||||||
{
|
{
|
||||||
setObjectName(QLatin1String( "DataTimeRunner" ));
|
setObjectName(QLatin1String("DataTimeRunner"));
|
||||||
|
|
||||||
addSyntax(Plasma::RunnerSyntax(dateWord, i18n("Displays the current date")));
|
addSyntax(Plasma::RunnerSyntax(dateWord, i18n("Displays the current date")));
|
||||||
addSyntax(Plasma::RunnerSyntax(dateWord + QLatin1String( " :q:" ), i18n("Displays the current date in a given timezone")));
|
addSyntax(Plasma::RunnerSyntax(dateWord + QLatin1String( " :q:" ), i18n("Displays the current date in a given timezone")));
|
||||||
|
@ -46,10 +46,6 @@ DateTimeRunner::DateTimeRunner(QObject *parent, const QVariantList &args)
|
||||||
addSyntax(Plasma::RunnerSyntax(timeWord + QLatin1String( " :q:" ), i18n("Displays the current time in a given timezone")));
|
addSyntax(Plasma::RunnerSyntax(timeWord + QLatin1String( " :q:" ), i18n("Displays the current time in a given timezone")));
|
||||||
}
|
}
|
||||||
|
|
||||||
DateTimeRunner::~DateTimeRunner()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DateTimeRunner::match(Plasma::RunnerContext &context)
|
void DateTimeRunner::match(Plasma::RunnerContext &context)
|
||||||
{
|
{
|
||||||
const QString term = context.query();
|
const QString term = context.query();
|
||||||
|
|
|
@ -36,7 +36,6 @@ class DateTimeRunner : public Plasma::AbstractRunner
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DateTimeRunner(QObject *parent, const QVariantList &args);
|
DateTimeRunner(QObject *parent, const QVariantList &args);
|
||||||
~DateTimeRunner();
|
|
||||||
|
|
||||||
void match(Plasma::RunnerContext &context);
|
void match(Plasma::RunnerContext &context);
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ void KateSessions::match(Plasma::RunnerContext &context)
|
||||||
);
|
);
|
||||||
KUrl url;
|
KUrl url;
|
||||||
foreach (const QString &it, list) {
|
foreach (const QString &it, list) {
|
||||||
/* KConfig _config( *it, KConfig::SimpleConfig );
|
/* KConfig _config( it, KConfig::SimpleConfig );
|
||||||
KConfigGroup config(&_config, "General" );
|
KConfigGroup config(&_config, "General" );
|
||||||
QString name = config.readEntry( "Name" );*/
|
QString name = config.readEntry( "Name" );*/
|
||||||
url.setPath(it);
|
url.setPath(it);
|
||||||
|
|
Loading…
Add table
Reference in a new issue