diff options
author | Michele Calgaro <[email protected]> | 2024-02-12 14:08:42 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-12 14:08:52 +0900 |
commit | 67bff2edcacb208dc44dcd521386bef686dc6dbf (patch) | |
tree | 538584042585402a59d4b1464b117033778ccc28 /src/dialogs | |
parent | fb401a891f1b426e9419c0cb16403df407138611 (diff) | |
download | tqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.tar.gz tqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.zip |
Replace Q_WS_* defines with TQ_WS_* equivalents
This is the first part of the replacement process.
Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*.
Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow
TDE code to continue building till replacement is carried over to all
other modules.
Once that is completed, the original Q_WS_* defines will
be removed.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/dialogs')
-rw-r--r-- | src/dialogs/ntqfiledialog.h | 4 | ||||
-rw-r--r-- | src/dialogs/qcolordialog.cpp | 12 | ||||
-rw-r--r-- | src/dialogs/qdialog.cpp | 8 | ||||
-rw-r--r-- | src/dialogs/qfiledialog.cpp | 68 | ||||
-rw-r--r-- | src/dialogs/qfontdialog.cpp | 6 | ||||
-rw-r--r-- | src/dialogs/qmessagebox.cpp | 20 | ||||
-rw-r--r-- | src/dialogs/qprintdialog.cpp | 2 | ||||
-rw-r--r-- | src/dialogs/qprogressdialog.cpp | 2 |
8 files changed, 61 insertions, 61 deletions
diff --git a/src/dialogs/ntqfiledialog.h b/src/dialogs/ntqfiledialog.h index a2eb6324e..be3cdf4ac 100644 --- a/src/dialogs/ntqfiledialog.h +++ b/src/dialogs/ntqfiledialog.h @@ -297,7 +297,7 @@ private: TQPushButton *okB; TQPushButton *cancelB; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) static TQString winGetOpenFileName( const TQString &initialSelection, const TQString &filter, TQString* workingDirectory, @@ -324,7 +324,7 @@ private: const TQString& caption = TQString::null); static TQString resolveLinkFile( const TQString& linkfile ); #endif -#if defined(Q_WS_MACX) || defined(Q_WS_MAC9) +#if defined(TQ_WS_MACX) || defined(TQ_WS_MAC9) static TQString macGetSaveFileName( const TQString &, const TQString &, TQString *, TQWidget *, const char*, const TQString&, TQString *); diff --git a/src/dialogs/qcolordialog.cpp b/src/dialogs/qcolordialog.cpp index addbd1bf8..df0424376 100644 --- a/src/dialogs/qcolordialog.cpp +++ b/src/dialogs/qcolordialog.cpp @@ -58,12 +58,12 @@ #include "ntqsettings.h" #include "ntqpopupmenu.h" -#ifdef Q_WS_MAC +#ifdef TQ_WS_MAC TQRgb macGetRgba( TQRgb initial, bool *ok, TQWidget *parent, const char* name ); TQColor macGetColor( const TQColor& initial, TQWidget *parent, const char *name ); #endif -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include "private/tqttdeintegration_x11_p.h" #endif @@ -1485,10 +1485,10 @@ TQColorDialog::TQColorDialog(TQWidget* parent, const char* name, bool modal) : TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *parent, const char *name ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if( TQTDEIntegration::enabled()) return TQTDEIntegration::getColor( initial, parent, name ); -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) return macGetColor(initial, parent, name); #endif @@ -1525,14 +1525,14 @@ TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *parent, TQRgb TQColorDialog::getRgba( TQRgb initial, bool *ok, TQWidget *parent, const char* name ) { -#if defined(Q_WS_MAC) +#if defined(TQ_WS_MAC) if( TQTDEIntegration::enabled()) { TQColor color = TQTDEIntegration::getColor( TQColor( initial ), parent, name ); if( ok ) *ok = color.isValid(); return color.rgba(); } -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) return macGetRgba(initial, ok, parent, name); #endif diff --git a/src/dialogs/qdialog.cpp b/src/dialogs/qdialog.cpp index 7df3bbea9..f8067b545 100644 --- a/src/dialogs/qdialog.cpp +++ b/src/dialogs/qdialog.cpp @@ -671,14 +671,14 @@ bool TQDialog::event( TQEvent *e ) Geometry management. *****************************************************************************/ -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) extern "C" { int XSetTransientForHint( Display *, unsigned long, unsigned long ); } #include <private/qt_x11_p.h> #undef FocusIn // defined in qapplication_x11.cpp extern Atom qt_net_wm_full_placement; extern bool qt_net_supports(Atom atom); -#endif // Q_WS_X11 +#endif // TQ_WS_X11 /*! Shows the dialog as a \link #modeless modeless \endlink dialog. @@ -710,14 +710,14 @@ void TQDialog::show() if (windowState() != state) setWindowState(state); -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if (!parentWidget() && testWFlags(WShowModal) && tqApp->mainWidget() && tqApp->mainWidget()->isVisible() && !tqApp->mainWidget()->isMinimized()) { // make sure the transient for hint is set properly for modal dialogs x11SetWindowTransient( tqApp->mainWidget()); } -#endif // Q_WS_X11 +#endif // TQ_WS_X11 #ifdef Q_OS_TEMP hideSpecial(); diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp index e323f1110..b3dc48e73 100644 --- a/src/dialogs/qfiledialog.cpp +++ b/src/dialogs/qfiledialog.cpp @@ -94,15 +94,15 @@ #include "ntqvbox.h" #include "ntqwidgetstack.h" -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include "private/tqttdeintegration_x11_p.h" #endif -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN #ifdef TQT_THREAD_SUPPORT # include <private/qmutexpool_p.h> #endif // TQT_THREAD_SUPPORT -#endif // Q_WS_WIN +#endif // TQ_WS_WIN #if !defined(Q_OS_TEMP) #include <time.h> @@ -113,7 +113,7 @@ #include <limits.h> #include <ctype.h> -#ifdef Q_WS_MAC +#ifdef TQ_WS_MAC #include "qt_mac.h" extern TQString qt_mac_precomposeFileName(const TQString &); // qglobal.cpp #undef check @@ -515,7 +515,7 @@ static void updateLastSize( TQFileDialog *that ) // resolving the W methods manually is needed, because Windows 95 doesn't include // these methods in Shell32.lib (not even stubs!), so you'd get an unresolved symbol // when TQt calls getEsistingDirectory(), etc. -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) typedef UINT (WINAPI *PtrExtractIconEx)(LPCTSTR,int,HICON*,HICON*,UINT); static PtrExtractIconEx ptrExtractIconEx = 0; @@ -613,7 +613,7 @@ static void makeVariables() { bShowHiddenFiles = FALSE; sortFilesBy = (int)TQDir::Name; detailViewMode = FALSE; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) if ( !fileIconProvider ) fileIconProvider = new TQWindowsIconProvider( tqApp ); #endif @@ -1075,7 +1075,7 @@ public: TQString newStr; TQCString cName = fName.utf8(); const TQCString sChars( -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN "#%" #else "<>#@\"&%$:,;?={}|^~[]\'`\\*" @@ -1122,7 +1122,7 @@ public: #ifndef Q_NO_CURSOR bool cursorOverride; // Remember if the cursor was overridden or not. #endif -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN int oldPermissionLookup; #endif }; @@ -2444,7 +2444,7 @@ TQFileDialog::TQFileDialog( const TQString& dirName, const TQString & filter, } -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) extern int qt_ntfs_permission_lookup; #endif @@ -2472,7 +2472,7 @@ void TQFileDialog::init() d->pendingItems.setAutoDelete( FALSE ); d->mimeTypeTimer = new TQTimer( this ); d->cursorOverride = FALSE; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) d->oldPermissionLookup = qt_ntfs_permission_lookup; #endif connect( d->mimeTypeTimer, TQ_SIGNAL( timeout() ), @@ -2661,7 +2661,7 @@ void TQFileDialog::init() d->modeButtons->insert( d->previewInfo ); d->previewContents = new TQToolButton( this, "preview info view" ); -#if defined(Q_WS_WIN) && !defined(Q_OS_TEMP) +#if defined(TQ_WS_WIN) && !defined(Q_OS_TEMP) if ( (qt_winver & WV_NT_based) > TQt::WV_NT ) #else if ( !qstrcmp(style().className(), "TQWindowsStyle") ) @@ -3486,15 +3486,15 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith, if ( workingDirectory->isNull() ) *workingDirectory = ::toRootIfNotExists( TQDir::currentDirPath() ); -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter, false ).first(); -#elif defined(Q_WS_WIN) +#elif defined(TQ_WS_WIN) if ( tqt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle ) return winGetOpenFileName( initialSelection, filter, workingDirectory, parent, name, caption, selectedFilter ); -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) if (tqt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE) || tqApp->style().inherits("TQMacStyle"))) return qt_mac_precomposeFileName(macGetOpenFileNames(filter, @@ -3611,15 +3611,15 @@ TQString TQFileDialog::getSaveFileName( const TQString & startWith, if ( workingDirectory->isNull() ) *workingDirectory = ::toRootIfNotExists( TQDir::currentDirPath() ); -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::getSaveFileName( initialSelection, filter, workingDirectory, parent, name, caption, selectedFilter ); -#elif defined(Q_WS_WIN) +#elif defined(TQ_WS_WIN) if ( tqt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle ) return winGetSaveFileName( initialSelection, filter, workingDirectory, parent, name, caption, selectedFilter ); -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) if (tqt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE) || tqApp->style().inherits("TQMacStyle"))) return qt_mac_precomposeFileName(macGetSaveFileName(initialSelection, filter, @@ -3666,7 +3666,7 @@ void TQFileDialog::okClicked() { TQString fn( nameEdit->text() ); -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) TQFileInfo fi( d->url.path() + fn ); if ( fi.isSymLink() ) { nameEdit->setText( fi.readLink() ); @@ -4128,7 +4128,7 @@ void TQFileDialog::selectDirectoryOrFile( TQListViewItem * newItem ) if ( d->url.isLocalFile() ) { TQFileInfo fi( d->url.path() + newItem->text(0) ); -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) if ( fi.isSymLink() ) { nameEdit->setText( fi.readLink() ); okClicked(); @@ -4505,7 +4505,7 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir, if ( workingDirectory ) wd = *workingDirectory; -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) TQString initialDir; if ( !dir.isEmpty() ) { TQUrlOperator u( dir ); @@ -4515,7 +4515,7 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir, initialDir = TQString::null; if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::getExistingDirectory( initialDir, parent, name, caption ); -#elif defined(Q_WS_WIN) +#elif defined(TQ_WS_WIN) TQString initialDir; if ( !dir.isEmpty() ) { TQUrlOperator u( dir ); @@ -4526,7 +4526,7 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir, if ( tqt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle && dirOnly ) return winGetExistingDirectory( initialDir, parent, name, caption ); #endif -#if defined(Q_WS_MAC) +#if defined(TQ_WS_MAC) TQString *initialDir = 0; if (!dir.isEmpty()) { TQUrlOperator u(dir); @@ -5049,7 +5049,7 @@ TQFileIconProvider * TQFileDialog::iconProvider() } -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) // ### FIXME: this code is duplicated in qdns.cpp static TQString getWindowsRegString( HKEY key, const TQString &subKey ) @@ -5442,7 +5442,7 @@ bool TQFileDialog::eventFilter( TQObject * o, TQEvent * e ) } else if ( o == nameEdit && e->type() == TQEvent::KeyPress && d->mode != AnyFile ) { if ( ( nameEdit->cursorPosition() == (int)nameEdit->text().length() || nameEdit->hasSelectedText() ) && isprint(((TQKeyEvent *)e)->ascii()) ) { -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) TQString nt( nameEdit->text().lower() ); #else TQString nt( nameEdit->text() ); @@ -5450,7 +5450,7 @@ bool TQFileDialog::eventFilter( TQObject * o, TQEvent * e ) nt.truncate( nameEdit->cursorPosition() ); nt += (char)(((TQKeyEvent *)e)->ascii()); TQListViewItem * i = files->firstChild(); -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) while( i && i->text( 0 ).left(nt.length()).lower() != nt ) #else while( i && i->text( 0 ).left(nt.length()) != nt ) @@ -5679,13 +5679,13 @@ TQStringList TQFileDialog::getOpenFileNames( const TQString & filter, } } -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter, true ); -#elif defined(Q_WS_WIN) +#elif defined(TQ_WS_WIN) if ( tqt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle ) return winGetOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter ); -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) if (tqt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE) || tqApp->style().inherits("TQMacStyle"))) { TQStringList sl = macGetOpenFileNames(filter, dir.isEmpty() ? 0 : workingDirectory, parent, @@ -5786,7 +5786,7 @@ void TQFileDialog::urlStart( TQNetworkOperation *op ) if ( !op ) return; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) qt_ntfs_permission_lookup--; #endif if ( op->operation() == TQNetworkProtocol::OpListChildren ) { @@ -5812,7 +5812,7 @@ void TQFileDialog::urlStart( TQNetworkOperation *op ) TQString s = d->url.toString( FALSE, FALSE ); bool found = FALSE; for ( int i = 0; i < d->paths->count(); ++i ) { -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) if ( d->paths->text( i ).lower() == s.lower() ) { #else if ( d->paths->text( i ) == s ) { @@ -5879,7 +5879,7 @@ void TQFileDialog::urlFinished( TQNetworkOperation *op ) op == d->currListChildren ) { if ( !d->hadDotDot && !isRoot( d->url ) ) { bool ok = TRUE; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) if ( d->url.path().left( 2 ) == "//" ) ok = FALSE; #endif @@ -5907,7 +5907,7 @@ void TQFileDialog::urlFinished( TQNetworkOperation *op ) d->progressDia = 0; } -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) if (d->oldPermissionLookup != qt_ntfs_permission_lookup) qt_ntfs_permission_lookup++; #endif @@ -5968,14 +5968,14 @@ void TQFileDialog::insertEntry( const TQValueList<TQUrlInfo> &lst, TQNetworkOper d->hadDotDot = TRUE; if ( isRoot( d->url ) ) continue; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) if ( d->url.path().left( 2 ) == "//" ) continue; #endif } else if ( inf.name() == "." ) continue; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) // Workaround a Windows bug, '..' is apparantly hidden in directories // that are one level away from root if ( !bShowHiddenFiles && inf.name() != ".." ) { diff --git a/src/dialogs/qfontdialog.cpp b/src/dialogs/qfontdialog.cpp index 3f713d9e0..d81c01476 100644 --- a/src/dialogs/qfontdialog.cpp +++ b/src/dialogs/qfontdialog.cpp @@ -59,7 +59,7 @@ #include <private/qfontdata_p.h> #include <ntqvalidator.h> -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include "private/tqttdeintegration_x11_p.h" #endif @@ -396,7 +396,7 @@ extern bool tqt_use_native_dialogs; TQFont TQFontDialog::getFont( bool *ok, const TQFont *def, TQWidget *parent, const char* name) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::getFont( ok, def, parent, name ); #endif @@ -465,7 +465,7 @@ bool TQFontDialog::eventFilter( TQObject * o , TQEvent * e ) return TQDialog::eventFilter( o, e ); } -#ifdef Q_WS_MAC +#ifdef TQ_WS_MAC // #define SHOW_FONTS_IN_FAMILIES #endif diff --git a/src/dialogs/qmessagebox.cpp b/src/dialogs/qmessagebox.cpp index a17fad136..929be411a 100644 --- a/src/dialogs/qmessagebox.cpp +++ b/src/dialogs/qmessagebox.cpp @@ -53,7 +53,7 @@ #include "ntqaccessible.h" #endif -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include "private/tqttdeintegration_x11_p.h" #endif @@ -949,7 +949,7 @@ void TQMessageBox::adjustSize() w = screen.width(); resize( w, h ); setMinimumSize( size() ); -#ifdef Q_WS_MAC +#ifdef TQ_WS_MAC setMaximumSize(size()); #endif } @@ -1112,7 +1112,7 @@ int TQMessageBox::information( TQWidget *parent, const TQString& caption, const TQString& text, int button0, int button1, int button2 ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::information( parent, caption, text, button0, button1, button2 ); #endif @@ -1163,7 +1163,7 @@ int TQMessageBox::question( TQWidget *parent, const TQString& caption, const TQString& text, int button0, int button1, int button2 ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::question( parent, caption, text, button0, button1, button2 ); #endif @@ -1215,7 +1215,7 @@ int TQMessageBox::warning( TQWidget *parent, const TQString& caption, const TQString& text, int button0, int button1, int button2 ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::warning( parent, caption, text, button0, button1, button2 ); #endif @@ -1267,7 +1267,7 @@ int TQMessageBox::critical( TQWidget *parent, const TQString& caption, const TQString& text, int button0, int button1, int button2 ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::critical( parent, caption, text, button0, button1, button2 ); #endif @@ -1418,7 +1418,7 @@ int TQMessageBox::information( TQWidget *parent, const TQString &caption, int defaultButtonNumber, int escapeButtonNumber ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::information( parent, caption, text, button0Text, button1Text, button2Text, defaultButtonNumber, escapeButtonNumber ); @@ -1465,7 +1465,7 @@ int TQMessageBox::question( TQWidget *parent, const TQString &caption, int defaultButtonNumber, int escapeButtonNumber ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::question( parent, caption, text, button0Text, button1Text, button2Text, defaultButtonNumber, escapeButtonNumber ); @@ -1514,7 +1514,7 @@ int TQMessageBox::warning( TQWidget *parent, const TQString &caption, int defaultButtonNumber, int escapeButtonNumber ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::warning( parent, caption, text, button0Text, button1Text, button2Text, defaultButtonNumber, escapeButtonNumber ); @@ -1559,7 +1559,7 @@ int TQMessageBox::critical( TQWidget *parent, const TQString &caption, int defaultButtonNumber, int escapeButtonNumber ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if ( tqt_use_native_dialogs && TQTDEIntegration::enabled()) return TQTDEIntegration::critical( parent, caption, text, button0Text, button1Text, button2Text, defaultButtonNumber, escapeButtonNumber ); diff --git a/src/dialogs/qprintdialog.cpp b/src/dialogs/qprintdialog.cpp index 105862173..764c480f6 100644 --- a/src/dialogs/qprintdialog.cpp +++ b/src/dialogs/qprintdialog.cpp @@ -1416,7 +1416,7 @@ void TQPrintDialog::printerOrFileSelected( int id ) cur += '/'; if ( cur.left( home.length() ) != home ) cur = home; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 cur += "print.ps"; #endif d->fileName->setText( cur ); diff --git a/src/dialogs/qprogressdialog.cpp b/src/dialogs/qprogressdialog.cpp index 6e18f2d7f..e139ad3b3 100644 --- a/src/dialogs/qprogressdialog.cpp +++ b/src/dialogs/qprogressdialog.cpp @@ -617,7 +617,7 @@ void TQProgressDialog::setProgress( int progress ) d->shown_once = TRUE; } } -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX TQApplication::flush(); #endif } |