summaryrefslogtreecommitdiffstats
path: root/kdeui/kpanelapplet.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kpanelapplet.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kpanelapplet.cpp')
-rw-r--r--kdeui/kpanelapplet.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeui/kpanelapplet.cpp b/kdeui/kpanelapplet.cpp
index 1536e974d..817d9de60 100644
--- a/kdeui/kpanelapplet.cpp
+++ b/kdeui/kpanelapplet.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include "kpanelapplet.h"
#include "kpanelapplet.moc"
@@ -36,15 +36,15 @@ public:
hasFocus(false)
{}
- const QPopupMenu* customMenu;
+ const TQPopupMenu* customMenu;
KSharedConfig::Ptr sharedConfig;
- QPtrList<QObject> watchedForFocus;
+ TQPtrList<TQObject> watchedForFocus;
bool hasFocus;
};
-KPanelApplet::KPanelApplet(const QString& configFile, Type type,
- int actions, QWidget *parent, const char *name, WFlags f)
- : QFrame(parent, name, f)
+KPanelApplet::KPanelApplet(const TQString& configFile, Type type,
+ int actions, TQWidget *parent, const char *name, WFlags f)
+ : TQFrame(parent, name, f)
, _type(type)
, _position( pBottom )
, _alignment( LeftTop )
@@ -53,7 +53,7 @@ KPanelApplet::KPanelApplet(const QString& configFile, Type type,
, d(new KPanelApplet::KPanelAppletPrivate())
{
setFrameStyle(NoFrame);
- QPalette pal(palette());
+ TQPalette pal(palette());
if(pal.active().mid() != pal.inactive().mid()){
pal.setInactive(pal.active());
setPalette(pal);
@@ -89,7 +89,7 @@ void KPanelApplet::setAlignment( Alignment a )
void KPanelApplet::positionChange( Position )
{
orientationChange( orientation() );
- QResizeEvent e( size(), size() );
+ TQResizeEvent e( size(), size() );
resizeEvent( &e );
popupDirectionChange( popupDirection() );
}
@@ -127,17 +127,17 @@ void KPanelApplet::action( Action a )
reportBug();
}
-const QPopupMenu* KPanelApplet::customMenu() const
+const TQPopupMenu* KPanelApplet::customMenu() const
{
return d->customMenu;
}
-void KPanelApplet::setCustomMenu(const QPopupMenu* menu)
+void KPanelApplet::setCustomMenu(const TQPopupMenu* menu)
{
d->customMenu = menu;
}
-void KPanelApplet::watchForFocus(QWidget* widget, bool watch)
+void KPanelApplet::watchForFocus(TQWidget* widget, bool watch)
{
if (!widget)
{
@@ -170,22 +170,22 @@ void KPanelApplet::needsFocus(bool focus)
emit requestFocus(focus);
}
-bool KPanelApplet::eventFilter(QObject *o, QEvent * e)
+bool KPanelApplet::eventFilter(TQObject *o, TQEvent * e)
{
if (d->watchedForFocus.find(o) != -1)
{
- if (e->type() == QEvent::MouseButtonRelease ||
- e->type() == QEvent::FocusIn)
+ if (e->type() == TQEvent::MouseButtonRelease ||
+ e->type() == TQEvent::FocusIn)
{
needsFocus(true);
}
- else if (e->type() == QEvent::FocusOut)
+ else if (e->type() == TQEvent::FocusOut)
{
needsFocus(false);
}
}
- return QFrame::eventFilter(o, e);
+ return TQFrame::eventFilter(o, e);
}
KSharedConfig::Ptr KPanelApplet::sharedConfig() const