summaryrefslogtreecommitdiffstats
path: root/kommander
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-02-07 10:15:56 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-02-07 10:15:56 +0900
commitdba2864aa3f9fb73ca33d80efd3258f4d82e1bb6 (patch)
tree4c6b6607d8d13347ad25142a724b3b4034fc6d1f /kommander
parenta9e454973fb0519ef32e676cf5aa31111061720d (diff)
downloadtdewebdev-dba2864aa3f9fb73ca33d80efd3258f4d82e1bb6.tar.gz
tdewebdev-dba2864aa3f9fb73ca33d80efd3258f4d82e1bb6.zip
Removed TQT_NON_COMMERCIAL check and related code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kommander')
-rw-r--r--kommander/editor/propertyeditor.cpp4
-rw-r--r--kommander/editor/resource.cpp9
2 files changed, 0 insertions, 13 deletions
diff --git a/kommander/editor/propertyeditor.cpp b/kommander/editor/propertyeditor.cpp
index 24ce0949..eb74a660 100644
--- a/kommander/editor/propertyeditor.cpp
+++ b/kommander/editor/propertyeditor.cpp
@@ -2197,11 +2197,7 @@ void PropertyPaletteItem::getPalette()
if ( w->inherits( "TQScrollView" ) )
w = ( (TQScrollView*)w )->viewport();
TQPalette pal = PaletteEditor::getPalette( &ok, val.toPalette(),
-#if defined(TQT_NON_COMMERCIAL)
- w->backgroundMode(), listview->topLevelWidget(),
-#else
w->backgroundMode(), listview,
-#endif
"choose_palette", listview->propertyEditor()->formWindow() );
if ( !ok )
return;
diff --git a/kommander/editor/resource.cpp b/kommander/editor/resource.cpp
index bcf15811..b5de633b 100644
--- a/kommander/editor/resource.cpp
+++ b/kommander/editor/resource.cpp
@@ -303,17 +303,8 @@ bool Resource::load( FormFile *ff, TQIODevice* dev )
if ( !customWidgets.isNull() )
loadCustomWidgets( customWidgets, this );
-#if defined (TQT_NON_COMMERCIAL)
- bool previewMode = MainWindow::self->isPreviewing();
- 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() )