Removed QT_NON_COMMERCIAL check and related code.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cde9d7e942)
r14.0.x
Michele Calgaro 3 years ago
parent d0da081258
commit be256666b2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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/qtkdeintegration_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(
"<h3>About TQt</h3>"
"<p>This program uses TQt version %1.</p>"
@ -606,7 +599,6 @@ void TQMessageBox::init( int button0, int button1, int button2 )
"See <tt>https://trinitydesktop.org/docs/qt3/</tt> "
"for more information.</p>"
).arg( TQT_VERSION_STR );
#endif
}
label = new TQMessageBoxLabel( this );

@ -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 );

@ -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();

@ -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;

@ -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 );
}

@ -2309,11 +2309,7 @@ void PropertyPaletteItem::getPalette()
if ( ::tqt_cast<TQScrollView*>(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;

@ -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() )

@ -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<MainWindow*>(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<MainWindow*>(parent) )
#else
if ( parent )
#endif
wiz->reparent( parent, TQPoint( 0, 0 ), TRUE );
if ( init && ::tqt_cast<FormWindow*>(parent) ) {
TQDesignerWidget *dw = new TQDesignerWidget( (FormWindow*)parent, wiz, "WizardPage" );

Loading…
Cancel
Save