summaryrefslogtreecommitdiffstats
path: root/src/fetchdialog.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/fetchdialog.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/fetchdialog.h')
-rw-r--r--src/fetchdialog.h47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/fetchdialog.h b/src/fetchdialog.h
index eef4bdc..d690515 100644
--- a/src/fetchdialog.h
+++ b/src/fetchdialog.h
@@ -18,7 +18,7 @@
#include <kdialogbase.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
namespace Tellico {
class EntryView;
@@ -41,9 +41,9 @@ class KLineEdit;
class KPushButton;
class KStatusBar;
class KTextEdit;
-class QProgressBar;
-class QTimer;
-class QCheckBox;
+class TQProgressBar;
+class TQTimer;
+class TQCheckBox;
namespace Tellico {
@@ -53,19 +53,20 @@ namespace Tellico {
*/
class FetchDialog : public KDialogBase {
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- FetchDialog(QWidget* parent, const char* name = 0);
+ FetchDialog(TQWidget* tqparent, const char* name = 0);
~FetchDialog();
public slots:
void slotResetCollection();
protected:
- bool eventFilter(QObject* obj, QEvent* ev);
+ bool eventFilter(TQObject* obj, TQEvent* ev);
private slots:
void slotSearchClicked();
@@ -75,28 +76,28 @@ private slots:
void slotShowEntry();
void slotMoveProgress();
- void slotStatus(const QString& status);
- void slotUpdateStatus();
+ void slottqStatus(const TQString& status);
+ void slotUpdatetqStatus();
void slotFetchDone(bool checkISBN = true);
void slotResultFound(Tellico::Fetch::SearchResult* result);
void slotKeyChanged(int);
- void slotSourceChanged(const QString& source);
+ void slotSourceChanged(const TQString& source);
void slotMultipleISBN(bool toggle);
void slotEditMultipleISBN();
void slotInit();
void slotLoadISBNList();
void slotUPC2ISBN();
- void slotBarcodeRecognized(QString);
- void slotBarcodeGotImage(QImage&);
+ void slotBarcodeRecognized(TQString);
+ void slotBarcodeGotImage(TQImage&);
private:
void startProgress();
void stopProgress();
- void setStatus(const QString& text);
+ void settqStatus(const TQString& text);
void adjustColumnWidth();
- void customEvent( QCustomEvent *e );
+ void customEvent( TQCustomEvent *e );
class SearchResultItem;
@@ -104,25 +105,25 @@ private:
GUI::ComboBox* m_keyCombo;
KLineEdit* m_valueLineEdit;
KPushButton* m_searchButton;
- QCheckBox* m_multipleISBN;
+ TQCheckBox* m_multipleISBN;
KPushButton* m_editISBN;
GUI::ListView* m_listView;
EntryView* m_entryView;
KPushButton* m_addButton;
KPushButton* m_moreButton;
KStatusBar* m_statusBar;
- QProgressBar* m_progress;
- QTimer* m_timer;
- QGuardedPtr<KTextEdit> m_isbnTextEdit;
- QLabel *m_barcodePreview;
+ TQProgressBar* m_progress;
+ TQTimer* m_timer;
+ TQGuardedPtr<KTextEdit> m_isbnTextEdit;
+ TQLabel *m_barcodePreview;
bool m_started;
int m_resultCount;
- QString m_oldSearch;
- QStringList m_isbnList;
- QStringList m_statusMessages;
- QMap<int, Data::EntryPtr> m_entries;
- QPtrList<Fetch::SearchResult> m_results;
+ TQString m_oldSearch;
+ TQStringList m_isbnList;
+ TQStringList m_statusMessages;
+ TQMap<int, Data::EntryPtr> m_entries;
+ TQPtrList<Fetch::SearchResult> m_results;
int m_collType;
barcodeRecognition::barcodeRecognitionThread *m_barcodeRecognitionThread;