summaryrefslogtreecommitdiffstats
path: root/src/ksvnwidgets/logmsg_impl.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/ksvnwidgets/logmsg_impl.h
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/ksvnwidgets/logmsg_impl.h')
-rw-r--r--src/ksvnwidgets/logmsg_impl.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/ksvnwidgets/logmsg_impl.h b/src/ksvnwidgets/logmsg_impl.h
index 5d41ccf..30d11cd 100644
--- a/src/ksvnwidgets/logmsg_impl.h
+++ b/src/ksvnwidgets/logmsg_impl.h
@@ -22,15 +22,16 @@
#include "src/ksvnwidgets/logmessage.h"
#include "src/svnqt/commititem.hpp"
-#include <qvaluelist.h>
-#include <qpair.h>
+#include <tqvaluelist.h>
+#include <tqpair.h>
class Logmsg_impl: public LogmessageData {
Q_OBJECT
+ TQ_OBJECT
public:
struct logActionEntry {
- QString _name;
- QString _actionDesc;
+ TQString _name;
+ TQString _actionDesc;
enum ACTION_TYPE{
COMMIT=0,
@@ -39,36 +40,36 @@ public:
MISSING_DELETE=3
};
ACTION_TYPE _kind;
- logActionEntry(const QString&,const QString&,ACTION_TYPE kind = COMMIT);
+ logActionEntry(const TQString&,const TQString&,ACTION_TYPE kind = COMMIT);
logActionEntry();
};
- typedef QValueList<logActionEntry> logActionEntries;
+ typedef TQValueList<logActionEntry> logActionEntries;
- Logmsg_impl(QWidget *parent = 0, const char *name = 0);
- Logmsg_impl(const svn::CommitItemList&_items,QWidget *parent=0, const char *name=0);
- Logmsg_impl(const QMap<QString,QString>&_items,QWidget *parent=0, const char *name=0);
+ Logmsg_impl(TQWidget *tqparent = 0, const char *name = 0);
+ Logmsg_impl(const svn::CommitItemList&_items,TQWidget *tqparent=0, const char *name=0);
+ Logmsg_impl(const TQMap<TQString,TQString>&_items,TQWidget *tqparent=0, const char *name=0);
Logmsg_impl(const logActionEntries&,
const logActionEntries&,
- QWidget *parent = 0, const char *name = 0);
+ TQWidget *tqparent = 0, const char *name = 0);
virtual ~Logmsg_impl();
- QString getMessage()const;
+ TQString getMessage()const;
bool isKeeplocks()const;
void initHistory();
void saveHistory(bool canceld);
- static QString getLogmessage(bool*ok,svn::Depth*rec,bool*keeps_locks,QWidget*parent=0,const char*name=0);
- static QString getLogmessage(const svn::CommitItemList&,bool*ok,svn::Depth*rec,bool*keep_locks,QWidget*parent=0,const char*name=0);
- static QString getLogmessage(const QMap<QString,QString>&,bool*ok,svn::Depth*rec,bool*keep_locks,QWidget*parent=0,const char*name=0);
+ static TQString getLogmessage(bool*ok,svn::Depth*rec,bool*keeps_locks,TQWidget*tqparent=0,const char*name=0);
+ static TQString getLogmessage(const svn::CommitItemList&,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent=0,const char*name=0);
+ static TQString getLogmessage(const TQMap<TQString,TQString>&,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent=0,const char*name=0);
- static QString getLogmessage(const logActionEntries&,
+ static TQString getLogmessage(const logActionEntries&,
const logActionEntries&,
- QObject*callback,
+ TQObject*callback,
logActionEntries&,
- bool*ok,bool*keep_locks,QWidget*parent=0,const char*name=0);
+ bool*ok,bool*keep_locks,TQWidget*tqparent=0,const char*name=0);
- void addItemWidget(QWidget*);
+ void addItemWidget(TQWidget*);
svn::Depth getDepth()const;
@@ -84,19 +85,19 @@ protected slots:
virtual void insertFile();
protected:
- static QValueList<QString> sLogHistory;
- QValueList<QListViewItem*> m_Hidden;
- static const QString groupName;
- static QString sLastMessage;
+ static TQValueList<TQString> sLogHistory;
+ TQValueList<TQListViewItem*> m_Hidden;
+ static const TQString groupName;
+ static TQString sLastMessage;
static unsigned int smax_message_history;
bool m_hidden;
void hideButtons(bool);
void markUnversioned(bool mark);
void checkSplitterSize();
- virtual void insertFile(const QString&);
+ virtual void insertFile(const TQString&);
signals:
- void makeDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&,QWidget*);
+ void makeDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*);
};
#endif