summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmtray.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwmtray.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmtray.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/pwmanager/pwmanager/pwmtray.h b/pwmanager/pwmanager/pwmtray.h
index ffb625e..b1145e0 100644
--- a/pwmanager/pwmanager/pwmtray.h
+++ b/pwmanager/pwmanager/pwmtray.h
@@ -29,3 +29,6 @@
#include <qpainter.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
+//Added by qt3to4:
+#include <QMouseEvent>
+#include <QMenuItem>
@@ -38,4 +41,3 @@ class PwMTray;
/* wrapper to workaround MOC problems */
-class __ActiveTreeItem : public QCustomMenuItem
- , public QObject
+class __ActiveTreeItem : public QMenuItem
{
@@ -89,4 +91,4 @@ public:
p->setFont(font);
- p->drawText(x, y, w, h, AlignLeft | AlignVCenter |
- DontClip | ShowPrefix, text);
+ p->drawText(x, y, w, h, Qt::AlignLeft | Qt::AlignVCenter |
+ Qt::DontClip | Qt::ShowPrefix, text);
}
@@ -95,4 +97,4 @@ public:
{
- return QFontMetrics(font).size(AlignLeft | AlignVCenter |
- ShowPrefix | DontClip, text);
+ return QFontMetrics(font).size(Qt::AlignLeft | Qt::AlignVCenter |
+ Qt::ShowPrefix | Qt::DontClip, text);
}
@@ -124,3 +126,3 @@ protected:
#ifndef PWM_EMBEDDED
-//MOC_SKIP_BEGIN
+#ifndef Q_MOC_RUN
class PwMTray : public KSystemTray
@@ -136,3 +138,3 @@ class PwMTray : public KSystemTray
KPopupMenu *menu;
- QValueList<int> activeItems; // ids of all active items
+ Q3ValueList<int> activeItems; // ids of all active items
};
@@ -172,3 +174,3 @@ protected:
*/
- QValueList<struct treeItem> tree;
+ Q3ValueList<struct treeItem> tree;
/** pointer to init */
@@ -187,3 +189,3 @@ protected:
void rebuildTree(KPopupMenu *popup, PwMDoc *doc,
- QValueList<int> *activeItems);
+ Q3ValueList<int> *activeItems);
/** insert a new tree-entry for the given doc and returns the ID.*/
@@ -196,3 +198,3 @@ protected:
int docCategory, int docEntry,
- QValueList<int> *activeItemsList);
+ Q3ValueList<int> *activeItemsList);
/** mouse event on icon */
@@ -204,3 +206,3 @@ protected:
};
-//MOC_SKIP_END
+#endif
#else
@@ -217,3 +219,3 @@ class PwMTray : public QWidget
KPopupMenu *menu;
- QValueList<int> activeItems; // ids of all active items
+ Q3ValueList<int> activeItems; // ids of all active items
};
@@ -257,3 +259,3 @@ protected:
*/
- QValueList<struct treeItem> tree;
+ Q3ValueList<struct treeItem> tree;
/** pointer to init */
@@ -272,3 +274,3 @@ protected:
void rebuildTree(KPopupMenu *popup, PwMDoc *doc,
- QValueList<int> *activeItems);
+ Q3ValueList<int> *activeItems);
/** insert a new tree-entry for the given doc and returns the ID.*/
@@ -281,3 +283,3 @@ protected:
int docCategory, int docEntry,
- QValueList<int> *activeItemsList);
+ Q3ValueList<int> *activeItemsList);
/** mouse event on icon */