diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /libkscan/kscandevice.h | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/kscandevice.h')
-rw-r--r-- | libkscan/kscandevice.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/libkscan/kscandevice.h b/libkscan/kscandevice.h index f52af74d..06a28cfa 100644 --- a/libkscan/kscandevice.h +++ b/libkscan/kscandevice.h @@ -61,11 +61,12 @@ typedef enum { **/ -class KScanDevice : public QObject +class KScanDevice : public TQObject { Q_OBJECT + TQ_OBJECT - /* Hmmm - No Q_PROPS ? */ + /* Hmmm - No TQ_PROPS ? */ public: /** * KScanDevice - the KDE Scanner Device @@ -75,7 +76,7 @@ public: * */ - KScanDevice( TQObject *parent = 0 ); + KScanDevice( TQObject *tqparent = 0 ); /** * Destructor @@ -147,7 +148,7 @@ public: * @param TQImage *image - Pointer to a reserved image * @return the state of the operation in KScanStat */ - KScanStat acquire( const TQString& filename = TQString::null ); + KScanStat acquire( const TQString& filename = TQString() ); /** * returns the default filename of the preview image of this scanner. @@ -157,7 +158,7 @@ public: /** * loads the last saved previewed image on this device from the default file - * @return a bitmap as QImage + * @return a bitmap as TQImage **/ TQImage loadPreviewImage(); @@ -245,13 +246,13 @@ public: * KScanOption. It is internally connected to the scan device, every * change to the widget is automaticly considered by the scan device. * @param name: Name of the SANE Option - * @param parent: pointer to the parent widget + * @param tqparent: pointer to the tqparent widget * @param desc: pointer to the text appearing as widget text * @param tooltip: tooltip text. If zero, the SANE text will be used. **/ - KScanOption *getGuiElement( const TQCString& name, TQWidget *parent, - const TQString& desc = TQString::null, - const TQString& tooltip = TQString::null ); + KScanOption *getGuiElement( const TQCString& name, TQWidget *tqparent, + const TQString& desc = TQString(), + const TQString& tooltip = TQString() ); /** * returns the pointer to an already created Scanoption from the @@ -422,12 +423,12 @@ private: KScanStat createNewImage( SANE_Parameters *p ); // not implemented -// QWidget *entryField( TQWidget *parent, const TQString& text, +// TQWidget *entryField( TQWidget *tqparent, const TQString& text, // const TQString& tooltip ); KScanStat find_options(); // help fct. to process options KScanStat acquire_data( bool isPreview = false ); TQStrList scanner_avail; // list of names of all scan dev. - QStrList option_list; // list of names of all options + TQStrList option_list; // list of names of all options TQStrList dirtyList; // option changes inline TQString optionNotifyString(int) const; @@ -437,7 +438,7 @@ private: TQSocketNotifier *sn; - SCANSTATUS scanStatus; + SCANSTATUS scantqStatus; /* Data for the scan process */ /* This could/should go to a small help object */ |