diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/puke/ppushbt.cpp | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/puke/ppushbt.cpp')
-rw-r--r-- | ksirc/puke/ppushbt.cpp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/ksirc/puke/ppushbt.cpp b/ksirc/puke/ppushbt.cpp new file mode 100644 index 00000000..48cf6121 --- /dev/null +++ b/ksirc/puke/ppushbt.cpp @@ -0,0 +1,70 @@ +#include "ppushbt.h" +#include <stdio.h> + + +PObject * +PPushButton::createWidget(CreateArgs &ca) +{ + PPushButton *pb = new PPushButton(ca.parent); + QPushButton *qb; + if(ca.parent != 0 && ca.parent->widget()->isWidgetType() == TRUE) + qb = new QPushButton((QWidget *) ca.parent->widget()); + else + qb = new QPushButton(0L); + pb->setWidget(qb); + pb->setWidgetId(ca.pwI); + return pb; +} + + +PPushButton::PPushButton(PObject *parent) + : PButton(parent) +{ + // kdDebug(5008) << "PLineEdit PLineEdit called" << endl; + button = 0; + setWidget(button); +} + +PPushButton::~PPushButton() +{ + // kdDebug(5008) << "PLineEdit: in destructor" << endl; +/* delete widget(); // Delete the frame + button=0; // Set it to 0 + setWidget(button); // Now set all widget() calls to 0. + */ +} + +void PPushButton::messageHandler(int fd, PukeMessage *pm) +{ +// PukeMessage pmRet; + switch(pm->iCommand){ + default: + PButton::messageHandler(fd, pm); + } +} + +void PPushButton::setWidget(QObject *_qb) +{ + if(_qb != 0 && _qb->inherits("QPushButton") == FALSE) + { + errorInvalidSet(_qb); + return; + } + + button = (QPushButton *) _qb; + if(_qb != 0){ + } + PButton::setWidget(_qb); + +} + + +QPushButton *PPushButton::widget() +{ + return button; +} + + + +#include "ppushbt.moc" + |