summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-02 15:54:39 +0900
committerMichele Calgaro <[email protected]>2023-09-04 10:31:12 +0900
commite8e8e54254ec3786edbbc149be5a7a7109e6541d (patch)
tree6684b76c8005878e39139bc706e1653cbf311fb9 /kdevdesigner/designer
parentda6192de80b02052d30576401e06deb228ad84e6 (diff)
downloadtdevelop-e8e8e54254ec3786edbbc149be5a7a7109e6541d.tar.gz
tdevelop-e8e8e54254ec3786edbbc149be5a7a7109e6541d.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 88de09b6cc82c3c1592f1a71415cb962e39eb60b)
Diffstat (limited to 'kdevdesigner/designer')
-rw-r--r--kdevdesigner/designer/connectionitems.cpp2
-rw-r--r--kdevdesigner/designer/formwindow.cpp6
-rw-r--r--kdevdesigner/designer/mainwindow.cpp2
-rw-r--r--kdevdesigner/designer/menubareditor.cpp2
-rw-r--r--kdevdesigner/designer/popupmenueditor.cpp2
-rw-r--r--kdevdesigner/designer/previewwidgetimpl.cpp2
6 files changed, 8 insertions, 8 deletions
diff --git a/kdevdesigner/designer/connectionitems.cpp b/kdevdesigner/designer/connectionitems.cpp
index 2ad6afd8..3234878a 100644
--- a/kdevdesigner/designer/connectionitems.cpp
+++ b/kdevdesigner/designer/connectionitems.cpp
@@ -424,7 +424,7 @@ bool SlotItem::ignoreSlot( const char* slot ) const
if ( qstrcmp( slot, "setFocus()" ) == 0 )
if ( lastReceiver->isWidgetType() &&
- ( (TQWidget*)lastReceiver )->focusPolicy() == TQ_NoFocus )
+ ( (TQWidget*)lastReceiver )->focusPolicy() == TQWidget::NoFocus )
return TRUE;
return FALSE;
diff --git a/kdevdesigner/designer/formwindow.cpp b/kdevdesigner/designer/formwindow.cpp
index 8e3aa416..8bc3ed27 100644
--- a/kdevdesigner/designer/formwindow.cpp
+++ b/kdevdesigner/designer/formwindow.cpp
@@ -169,7 +169,7 @@ void FormWindow::init()
unclippedPainter = 0;
widgetPressed = FALSE;
drawRubber = FALSE;
- setFocusPolicy( TQ_ClickFocus );
+ setFocusPolicy( TQWidget::ClickFocus );
sizePreviewLabel = 0;
checkSelectionsTimer = new TQTimer( this, "checkSelectionsTimer" );
connect( checkSelectionsTimer, TQT_SIGNAL( timeout() ),
@@ -1779,7 +1779,7 @@ void FormWindow::showOrderIndicators()
TQWidget* w = (TQWidget*) o;
if ( w->isShown() &&
insertedWidgets[ (void*)w ] &&
- w->focusPolicy() != TQ_NoFocus ) {
+ w->focusPolicy() != TQWidget::NoFocus ) {
OrderIndicator* ind = new OrderIndicator( order++, w, this );
orderIndicators.append( ind );
if ( stackedWidgets.findRef( w ) == -1 )
@@ -2758,7 +2758,7 @@ void FormWindow::setFormFile( FormFile *f )
bool FormWindow::canBeBuddy( const TQWidget *w ) const
{
- return w->focusPolicy() != TQ_NoFocus;
+ return w->focusPolicy() != TQWidget::NoFocus;
}
bool FormWindow::event( TQEvent *e )
diff --git a/kdevdesigner/designer/mainwindow.cpp b/kdevdesigner/designer/mainwindow.cpp
index 8cec658f..c6072c81 100644
--- a/kdevdesigner/designer/mainwindow.cpp
+++ b/kdevdesigner/designer/mainwindow.cpp
@@ -281,7 +281,7 @@ MainWindow::MainWindow( KDevDesignerPart *part, bool asClient, bool single, cons
if ( autoSaveEnabled )
autoSaveTimer->start( autoSaveInterval * 1000 );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
}
MainWindow::~MainWindow()
diff --git a/kdevdesigner/designer/menubareditor.cpp b/kdevdesigner/designer/menubareditor.cpp
index ce0ae45d..4d14e59e 100644
--- a/kdevdesigner/designer/menubareditor.cpp
+++ b/kdevdesigner/designer/menubareditor.cpp
@@ -152,7 +152,7 @@ MenuBarEditor::MenuBarEditor( FormWindow * fw, TQWidget * parent, const char * n
hasSeparator( FALSE )
{
setAcceptDrops( TRUE );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
addItem.setMenuText( i18n("new menu") );
addSeparator.setMenuText( i18n("new separator") );
diff --git a/kdevdesigner/designer/popupmenueditor.cpp b/kdevdesigner/designer/popupmenueditor.cpp
index a791cda9..429b3f3b 100644
--- a/kdevdesigner/designer/popupmenueditor.cpp
+++ b/kdevdesigner/designer/popupmenueditor.cpp
@@ -304,7 +304,7 @@ void PopupMenuEditor::init()
addSeparator.action()->setMenuText( i18n("new separator") );
setAcceptDrops( TRUE );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
lineEdit = new TQLineEdit( this );
lineEdit->hide();
diff --git a/kdevdesigner/designer/previewwidgetimpl.cpp b/kdevdesigner/designer/previewwidgetimpl.cpp
index 15fb8058..c3c16e32 100644
--- a/kdevdesigner/designer/previewwidgetimpl.cpp
+++ b/kdevdesigner/designer/previewwidgetimpl.cpp
@@ -37,7 +37,7 @@ PreviewWidget::PreviewWidget( TQWidget *parent, const char *name )
while ((obj = it.current()) != 0) {
++it;
obj->installEventFilter(this);
- ((TQWidget*)obj)->setFocusPolicy(TQ_NoFocus);
+ ((TQWidget*)obj)->setFocusPolicy(TQWidget::NoFocus);
}
}