diff options
author | Michele Calgaro <[email protected]> | 2024-02-13 11:10:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-15 10:29:09 +0900 |
commit | 5e51787f9af4fd86450fab9e787b4037a772bca3 (patch) | |
tree | a792ad1d832ef77fd48f6c545d5bf35f8490d6eb /tdeio/tdefile | |
parent | 3b1a091b3f8c0e88904ed2395e9d7efe590c9495 (diff) | |
download | tdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.tar.gz tdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.zip |
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 03aa7238b34bb438632b6d572b008e32960f0895)
Diffstat (limited to 'tdeio/tdefile')
-rw-r--r-- | tdeio/tdefile/kpropertiesdialog.cpp | 10 | ||||
-rw-r--r-- | tdeio/tdefile/tdefiledialog.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tdeio/tdefile/kpropertiesdialog.cpp b/tdeio/tdefile/kpropertiesdialog.cpp index e226996e3..2457f4a69 100644 --- a/tdeio/tdefile/kpropertiesdialog.cpp +++ b/tdeio/tdefile/kpropertiesdialog.cpp @@ -135,7 +135,7 @@ extern "C" { #include "kpropertiesdialog.h" -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN # include <win32_utils.h> #endif @@ -289,7 +289,7 @@ KPropertiesDialog::KPropertiesDialog (const KURL& _tempUrl, const KURL& _current bool KPropertiesDialog::showDialog(KFileItem* item, TQWidget* parent, const char* name, bool modal) { -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN TQString localPath = item->localPath(); if (!localPath.isEmpty()) return showWin32FilePropertyDialog(localPath); @@ -301,7 +301,7 @@ bool KPropertiesDialog::showDialog(KFileItem* item, TQWidget* parent, bool KPropertiesDialog::showDialog(const KURL& _url, TQWidget* parent, const char* name, bool modal) { -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN if (_url.isLocalFile()) return showWin32FilePropertyDialog( _url.path() ); #endif @@ -956,7 +956,7 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props ) box->setSpacing(20); l = new TQLabel(mimeComment, box ); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 //TODO: wrap for win32 or mac? TQPushButton *button = new TQPushButton(box); @@ -1142,7 +1142,7 @@ void KFilePropsPlugin::setFileNameReadOnly( bool ro ) void KFilePropsPlugin::slotEditFileType() { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 TQString mime; if ( d->mimeType == KMimeType::defaultMimeType() ) { int pos = d->oldFileName.findRev( '.' ); diff --git a/tdeio/tdefile/tdefiledialog.cpp b/tdeio/tdefile/tdefiledialog.cpp index e5cb4c3e4..cf5d97692 100644 --- a/tdeio/tdefile/tdefiledialog.cpp +++ b/tdeio/tdefile/tdefiledialog.cpp @@ -88,7 +88,7 @@ #include <tdefilespeedbar.h> #include <tdefilebookmarkhandler.h> -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include <X11/Xlib.h> #include <fixx11h.h> #endif @@ -1338,7 +1338,7 @@ TQString KFileDialog::getOpenFileNameWId(const TQString& startDir, { TQWidget* parent = TQWidget::find( parent_id ); KFileDialog dlg(startDir, filter, parent, "filedialog", true); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if( parent == NULL && parent_id != 0 ) XSetTransientForHint( tqt_xdisplay(), dlg.winId(), parent_id ); #else @@ -1413,7 +1413,7 @@ TQString KFileDialog::getExistingDirectory(const TQString& startDir, TQWidget *parent, const TQString& caption) { -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN return TQFileDialog::getExistingDirectory(startDir, parent, "getExistingDirectory", caption, true, true); #else @@ -1620,7 +1620,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi bool specialDir = dir.at(0) == ':'; TQWidget* parent = TQWidget::find( parent_id ); KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if( parent == NULL && parent_id != 0 ) XSetTransientForHint(tqt_xdisplay(), dlg.winId(), parent_id); #else |