summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmview.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwmview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmview.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/pwmanager/pwmanager/pwmview.h b/pwmanager/pwmanager/pwmview.h
index e42b17a..8f60063 100644
--- a/pwmanager/pwmanager/pwmview.h
+++ b/pwmanager/pwmanager/pwmview.h
@@ -38,13 +38,17 @@
#include <klocale.h>
#include <kdialogbase.h>
#include <qevent.h>
#include <qfont.h>
#include <qobject.h>
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QKeyEvent>
+#include <Q3PopupMenu>
#include <vector>
#include <string>
using std::string;
using std::vector;
@@ -74,37 +78,37 @@ public:
*/
bool getCurEntryIndex(unsigned int *index);
/** returns the position of the given item in the document
* Note: This func only serches in the current category.
*/
bool getDocEntryIndex(unsigned int *index,
- const QListViewItem *item);
+ const Q3ListViewItem *item);
public slots:
/** update the view (call if dirty) */
void updateView()
{
updateCategories();
shiftToView();
}
/** (re)sort all items and (re)shift them to listView. */
void shiftToView();
/** handle clicking on an item */
- void handleToggle(QListViewItem *item);
+ void handleToggle(Q3ListViewItem *item);
/** handle right-clicking on an item */
- void handleRightClick(QListViewItem *item, const QPoint &point, int);
+ void handleRightClick(Q3ListViewItem *item, const QPoint &point, int);
/** selects the item at "index" */
void selAt(int index);
/** rename category button pressed */
void renCatButton_slot();
/** delete category button pressed */
void delCatButton_slot();
protected:
/** right-click context-menu */
- QPopupMenu *ctxMenu;
+ Q3PopupMenu *ctxMenu;
protected:
/** update the categories from document */
void updateCategories();
/** widget resize event */
void resizeEvent(QResizeEvent *);
@@ -121,13 +125,13 @@ protected:
}
/** The user pressed and released a key. */
void keyReleaseEvent(QKeyEvent *e);
protected slots:
/** changes the comment text-edit, because a new item has been selected */
- void refreshCommentTextEdit(QListViewItem *curItem);
+ void refreshCommentTextEdit(Q3ListViewItem *curItem);
/** copy pw to clipboard */
void copyPwToClip();
/** copy name to clipboard */
void copyNameToClip();
/** copy desc to clipboard */
void copyDescToClip();
@@ -149,13 +153,13 @@ private:
PwM *mainClass;
};
//US ENH basic widget to view an password entry. We need it for the sync stuff.
//But might be oif interest for other functionalities as well.
-class PwMDataItemView : public QTextBrowser
+class PwMDataItemView : public Q3TextBrowser
{
public:
PwMDataItemView( QWidget *parent = 0, const char *name = 0 );
/**
Sets the PwMDataItem object. It is displayed immediately.