diff --git a/src/dialogs/qmessagebox.cpp b/src/dialogs/qmessagebox.cpp index 3f85dc94..ff031bc7 100644 --- a/src/dialogs/qmessagebox.cpp +++ b/src/dialogs/qmessagebox.cpp @@ -52,10 +52,6 @@ #if defined(QT_ACCESSIBILITY_SUPPORT) #include "ntqaccessible.h" #endif -#if defined QT_NON_COMMERCIAL -#include "qnc_win.h" -#endif - #ifdef Q_WS_X11 #include "private/tqttdeintegration_x11_p.h" @@ -590,9 +586,6 @@ void TQMessageBox::init( int button0, int button1, int button2 ) if ( !translatedTextAboutTQt ) { translatedTextAboutTQt = new TQString; -#if defined(QT_NON_COMMERCIAL) - QT_NC_MSGBOX -#else *translatedTextAboutTQt = tr( "

About TQt

" "

This program uses TQt version %1.

" @@ -606,7 +599,6 @@ void TQMessageBox::init( int button0, int button1, int button2 ) "See https://trinitydesktop.org/docs/qt3/ " "for more information.

" ).arg( TQT_VERSION_STR ); -#endif } label = new TQMessageBoxLabel( this ); diff --git a/tools/designer/app/main.cpp b/tools/designer/app/main.cpp index 99cd0caa..23009764 100644 --- a/tools/designer/app/main.cpp +++ b/tools/designer/app/main.cpp @@ -200,11 +200,7 @@ int main( int argc, char *argv[] ) MainWindow *mw = new MainWindow( creatPid ); a.setMainWidget( mw ); -#if defined(QT_NON_COMMERCIAL) - mw->setCaption( "TQt Designer by Trolltech for non-commercial use" ); -#else mw->setCaption( "TQt Designer by Trolltech" ); -#endif if ( config.readBoolEntry( keybase + "Geometries/MainwindowMaximized", FALSE ) ) { int x = config.readNumEntry( keybase + "Geometries/MainwindowX", 0 ); int y = config.readNumEntry( keybase + "Geometries/MainwindowY", 0 ); diff --git a/tools/designer/designer/mainwindow.cpp b/tools/designer/designer/mainwindow.cpp index 5e4a4678..969ba868 100644 --- a/tools/designer/designer/mainwindow.cpp +++ b/tools/designer/designer/mainwindow.cpp @@ -202,13 +202,7 @@ Q_EXPORT MainWindow::MainWindow( bool asClient, bool single, const TQString &plg singleProject = single; statusBar()->clear(); -#if defined(QT_NON_COMMERCIAL) - statusBar()->addWidget( new TQLabel(tr("Ready - This is the non-commercial version of TQt - " - "For commercial evaluations, use the help menu to register with Trolltech."), statusBar()), 1 ); -#else statusBar()->addWidget( new TQLabel("Ready", statusBar()), 1 ); -#endif - set_splash_status( "Setting up GUI..." ); setupMDI(); diff --git a/tools/designer/designer/mainwindow.h b/tools/designer/designer/mainwindow.h index e5037451..db7fb14a 100644 --- a/tools/designer/designer/mainwindow.h +++ b/tools/designer/designer/mainwindow.h @@ -405,9 +405,6 @@ private: TQAction* actionCurrentTool; TQAction *actionHelpContents, *actionHelpAbout, *actionHelpAboutTQt, *actionHelpWhatsThis; TQAction *actionHelpManual; -#if defined(QT_NON_COMMERCIAL) - TQAction *actionHelpRegister; -#endif TQAction *actionToolsCustomWidget, *actionEditPreferences; TQAction *actionWindowTile, *actionWindowCascade, *actionWindowClose, *actionWindowCloseAll; TQAction *actionWindowNext, *actionWindowPrevious; diff --git a/tools/designer/designer/mainwindowactions.cpp b/tools/designer/designer/mainwindowactions.cpp index d7519f61..aa4949b8 100644 --- a/tools/designer/designer/mainwindowactions.cpp +++ b/tools/designer/designer/mainwindowactions.cpp @@ -993,14 +993,6 @@ void MainWindow::setupHelpActions() actionHelpAboutTQt->setWhatsThis( whatsThisFrom( "Help|About TQt" ) ); connect( actionHelpAboutTQt, SIGNAL( activated() ), this, SLOT( helpAboutTQt() ) ); -#if 0 //defined(QT_NON_COMMERCIAL) - // ### not used anymore -- should be deleted? - actionHelpRegister = new TQAction( tr("Register TQt"), TQPixmap(), tr("&Register TQt..."), 0, this, 0 ); - actionHelpRegister->setStatusTip( tr("Opens a web browser at the evaluation form on www.trolltech.com") ); - actionHelpRegister->setWhatsThis( tr("Register with Trolltech") ); - connect( actionHelpRegister, SIGNAL( activated() ), this, SLOT( helpRegister() ) ); -#endif - actionHelpWhatsThis = new TQAction( tr("What's This?"), TQIconSet( whatsthis_image, whatsthis_image ), tr("What's This?"), SHIFT + Key_F1, this, 0 ); actionHelpWhatsThis->setStatusTip( tr("\"What's This?\" context sensitive help") ); @@ -1021,11 +1013,6 @@ void MainWindow::setupHelpActions() menu->insertSeparator(); actionHelpAbout->addTo( menu ); actionHelpAboutTQt->addTo( menu ); -#if 0 //defined(QT_NON_COMMERCIAL) - // ### not used anymore -- should be deleted? - actionHelpRegister->addTo( menu ); -#endif - menu->insertSeparator(); actionHelpWhatsThis->addTo( menu ); } diff --git a/tools/designer/designer/propertyeditor.cpp b/tools/designer/designer/propertyeditor.cpp index 31908b3e..8f0cd223 100644 --- a/tools/designer/designer/propertyeditor.cpp +++ b/tools/designer/designer/propertyeditor.cpp @@ -2309,11 +2309,7 @@ void PropertyPaletteItem::getPalette() if ( ::tqt_cast(w) ) w = ( (TQScrollView*)w )->viewport(); TQPalette pal = PaletteEditor::getPalette( &ok, val.toPalette(), -#if defined(QT_NON_COMMERCIAL) - w->backgroundMode(), listview->topLevelWidget(), -#else w->backgroundMode(), listview, -#endif "choose_palette", listview->propertyEditor()->formWindow() ); if ( !ok ) return; diff --git a/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp index f892fbbf..ab9ac9d1 100644 --- a/tools/designer/designer/resource.cpp +++ b/tools/designer/designer/resource.cpp @@ -497,17 +497,8 @@ bool Resource::load( FormFile *ff, TQIODevice* dev, Project *defProject ) if ( !customWidgets.isNull() ) loadCustomWidgets( customWidgets, this ); -#if defined (QT_NON_COMMERCIAL) - bool previewMode = MainWindow::self ? MainWindow::self->isPreviewing() : FALSE; - TQWidget *w = (TQWidget*)createObject( widget, !previewMode ? (TQWidget*)formwindow : MainWindow::self ); - if ( !w ) - return FALSE; - if ( previewMode ) - w->reparent( MainWindow::self, TQt::WType_TopLevel, w->pos(), TRUE ); -#else if ( !createObject( widget, formwindow) ) return FALSE; -#endif if ( !forwards.isNull() ) { for ( TQDomElement n = forwards.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) diff --git a/tools/designer/designer/widgetfactory.cpp b/tools/designer/designer/widgetfactory.cpp index 2bcf1886..4a094105 100644 --- a/tools/designer/designer/widgetfactory.cpp +++ b/tools/designer/designer/widgetfactory.cpp @@ -854,20 +854,12 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare dia = new TQDesignerDialog( (FormWindow*)parent, parent, name ); else dia = new TQDialog( parent, name ); -#if defined(QT_NON_COMMERCIAL) - if ( ::tqt_cast(parent) ) -#else if ( parent ) -#endif dia->reparent( parent, TQPoint( 0, 0 ), TRUE ); return dia; } else if ( className == "TQWizard" ) { TQWizard *wiz = new TQDesignerWizard( parent, name ); -#if defined(QT_NON_COMMERCIAL) - if ( ::tqt_cast(parent) ) -#else if ( parent ) -#endif wiz->reparent( parent, TQPoint( 0, 0 ), TRUE ); if ( init && ::tqt_cast(parent) ) { TQDesignerWidget *dw = new TQDesignerWidget( (FormWindow*)parent, wiz, "WizardPage" );