[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdewebdev/kommander/widgets
From: Eric Laffoon <sequitur () kde ! org>
Date: 2009-09-15 19:19:07
Message-ID: 1253042347.199804.28400.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1023998 by sequitur:
setButtonText added
setText had been taken over to set widget text which is okay, but left this issue
M +5 -0 execbutton.cpp
--- branches/KDE/3.5/kdewebdev/kommander/widgets/execbutton.cpp #1023997:1023998
@@ -43,6 +43,7 @@
FirstFunction = 260, //CHANGE THIS NUMBER TO AN UNIQUE ONE!!!
EB_isOn,
EB_setPopup,
+ EB_setButtonText,
LastFunction
};
@@ -60,6 +61,7 @@
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(EB_isOn, "isOn(QString widget)", i18n("For use \
only when button is togle type."), 1); \
KommanderPlugin::registerFunction(EB_setPopup, "setPopup(QString widget, QString \
Menu)", i18n("Associate a Kommander PopupMenu with this ExecButton."), 2); + \
KommanderPlugin::registerFunction(EB_setButtonText, "setButtonText(QString widget, \
QString Text)", i18n("Set the text on the ExecButton."), 2); }
ExecButton::~ExecButton()
@@ -195,6 +197,9 @@
case EB_isOn:
return QString::number(this->isOn() );
break;
+ case EB_setButtonText:
+ ExecButton::setText(args[0]);
+ break;
case EB_setPopup:
{
QWidgetList *list = QApplication::allWidgets();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic