summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:54:11 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-04 10:31:26 +0900
commitd5e7a8219589dc8cbb928685b513aaad93a95775 (patch)
tree90bd24290e66f07a5349f9b818d1ae98cf3402c7
parent854ae8e07b5b84b8814546c46c59d050101a586b (diff)
downloadtdesdk-d5e7a8219589dc8cbb928685b513aaad93a95775.tar.gz
tdesdk-d5e7a8219589dc8cbb928685b513aaad93a95775.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4419ae48793b07591929aff8c69a381e7a5bbb32)
-rw-r--r--cervisia/cervisiapart.cpp6
-rw-r--r--cervisia/logtree.cpp2
-rw-r--r--cervisia/qttableview.cpp4
-rw-r--r--kbugbuster/gui/packageselectdialog.cpp2
-rw-r--r--kompare/komparepart/komparelistview.cpp2
-rw-r--r--kompare/komparepart/komparesplitter.cpp2
-rw-r--r--kuiviewer/quicreator.cpp2
-rw-r--r--tdecachegrind/tdecachegrind/callgraphview.cpp2
-rw-r--r--tdecachegrind/tdecachegrind/tabview.cpp2
-rw-r--r--tdecachegrind/tdecachegrind/treemap.cpp2
-rw-r--r--umbrello/umbrello/umllistview.cpp2
11 files changed, 14 insertions, 14 deletions
diff --git a/cervisia/cervisiapart.cpp b/cervisia/cervisiapart.cpp
index 29478146..8cf00d37 100644
--- a/cervisia/cervisiapart.cpp
+++ b/cervisia/cervisiapart.cpp
@@ -133,10 +133,10 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName,
: Qt::Horizontal;
splitter = new TQSplitter(o, parentWidget, widgetName);
// avoid PartManager's warning that Part's window can't handle focus
- splitter->setFocusPolicy( TQ_StrongFocus );
+ splitter->setFocusPolicy( TQWidget::StrongFocus );
update = new UpdateView(*config(), splitter);
- update->setFocusPolicy( TQ_StrongFocus );
+ update->setFocusPolicy( TQWidget::StrongFocus );
update->setFocus();
connect( update, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
this, TQT_SLOT(popupRequested(TDEListView*, TQListViewItem*, const TQPoint&)) );
@@ -144,7 +144,7 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName,
this, TQT_SLOT(openFile(TQString)) );
protocol = new ProtocolView(appId, splitter);
- protocol->setFocusPolicy( TQ_StrongFocus );
+ protocol->setFocusPolicy( TQWidget::StrongFocus );
setWidget(splitter);
}
diff --git a/cervisia/logtree.cpp b/cervisia/logtree.cpp
index 7bcb5a28..864e31ee 100644
--- a/cervisia/logtree.cpp
+++ b/cervisia/logtree.cpp
@@ -82,7 +82,7 @@ LogTreeView::LogTreeView(TQWidget *parent, const char *name)
setLeftMargin(0);
setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken );
setBackgroundMode(PaletteBase);
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
currentRow = -1;
currentCol = -1;
diff --git a/cervisia/qttableview.cpp b/cervisia/qttableview.cpp
index 02f8aea1..22eca6da 100644
--- a/cervisia/qttableview.cpp
+++ b/cervisia/qttableview.cpp
@@ -1450,7 +1450,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
sb->resize( sb->sizeHint() ); // height is irrelevant
TQ_CHECK_PTR(sb);
sb->setTracking( FALSE );
- sb->setFocusPolicy( TQ_NoFocus );
+ sb->setFocusPolicy( TQWidget::NoFocus );
connect( sb, TQT_SIGNAL(valueChanged(int)),
TQT_SLOT(verSbValue(int)));
connect( sb, TQT_SIGNAL(sliderMoved(int)),
@@ -1479,7 +1479,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
sb->setCursor( arrowCursor );
#endif
sb->resize( sb->sizeHint() ); // width is irrelevant
- sb->setFocusPolicy( TQ_NoFocus );
+ sb->setFocusPolicy( TQWidget::NoFocus );
TQ_CHECK_PTR(sb);
sb->setTracking( FALSE );
connect( sb, TQT_SIGNAL(valueChanged(int)),
diff --git a/kbugbuster/gui/packageselectdialog.cpp b/kbugbuster/gui/packageselectdialog.cpp
index 19fb36de..d228cf86 100644
--- a/kbugbuster/gui/packageselectdialog.cpp
+++ b/kbugbuster/gui/packageselectdialog.cpp
@@ -17,7 +17,7 @@
PackageListView::PackageListView( TQWidget *parent ) :
TQListView( parent )
{
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
}
void PackageListView::resetTyped()
diff --git a/kompare/komparepart/komparelistview.cpp b/kompare/komparepart/komparelistview.cpp
index 31b946bd..63ac3787 100644
--- a/kompare/komparepart/komparelistview.cpp
+++ b/kompare/komparepart/komparelistview.cpp
@@ -122,7 +122,7 @@ KompareListView::KompareListView( bool isSource,
setFrameStyle( TQFrame::NoFrame );
setVScrollBarMode( TQScrollView::AlwaysOff );
setHScrollBarMode( TQScrollView::AlwaysOff );
- setFocusPolicy( TQ_NoFocus );
+ setFocusPolicy( TQWidget::NoFocus );
setFont( m_settings->m_font );
setSpaces( m_settings->m_tabToNumberOfSpaces );
setFocusProxy( parent->parentWidget() );
diff --git a/kompare/komparepart/komparesplitter.cpp b/kompare/komparepart/komparesplitter.cpp
index 09e670b2..5be663ba 100644
--- a/kompare/komparepart/komparesplitter.cpp
+++ b/kompare/komparepart/komparesplitter.cpp
@@ -64,7 +64,7 @@ KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent,
setFrameStyle( TQFrame::NoFrame );
setSizePolicy( TQSizePolicy (TQSizePolicy::Ignored, TQSizePolicy::Ignored ));
setOpaqueResize( true );
- setFocusPolicy( TQ_WheelFocus );
+ setFocusPolicy( TQWidget::WheelFocus );
connect( this, TQT_SIGNAL(configChanged()), TQT_SLOT(slotConfigChanged()) );
connect( this, TQT_SIGNAL(configChanged()), TQT_SLOT(slotDelayedRepaintHandles()) );
diff --git a/kuiviewer/quicreator.cpp b/kuiviewer/quicreator.cpp
index c7a9e996..0dc6da3e 100644
--- a/kuiviewer/quicreator.cpp
+++ b/kuiviewer/quicreator.cpp
@@ -47,7 +47,7 @@ img)
if ( w )
{
TQPixmap p = TQPixmap::grabWidget(w);
- img = p.convertToImage().smoothScale(width,height,TQ_ScaleMin);
+ img = p.convertToImage().smoothScale(width,height,TQImage::ScaleMin);
return true;
}
else
diff --git a/tdecachegrind/tdecachegrind/callgraphview.cpp b/tdecachegrind/tdecachegrind/callgraphview.cpp
index 9a117e5f..8a023eb6 100644
--- a/tdecachegrind/tdecachegrind/callgraphview.cpp
+++ b/tdecachegrind/tdecachegrind/callgraphview.cpp
@@ -1388,7 +1388,7 @@ CallGraphView::CallGraphView(TraceItemView* parentView,
_completeView->raise();
_completeView->hide();
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
setBackgroundMode(TQt::NoBackground);
connect(this, TQT_SIGNAL(contentsMoving(int,int)),
diff --git a/tdecachegrind/tdecachegrind/tabview.cpp b/tdecachegrind/tdecachegrind/tabview.cpp
index 7cdb0852..2805c51f 100644
--- a/tdecachegrind/tdecachegrind/tabview.cpp
+++ b/tdecachegrind/tdecachegrind/tabview.cpp
@@ -232,7 +232,7 @@ TabView::TabView(TraceItemView* parentView,
TQWidget* parent, const char* name)
: TQWidget(parent, name), TraceItemView(parentView)
{
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
_isCollapsed = true;
diff --git a/tdecachegrind/tdecachegrind/treemap.cpp b/tdecachegrind/tdecachegrind/treemap.cpp
index 2c9e3ba4..d77fb1e9 100644
--- a/tdecachegrind/tdecachegrind/treemap.cpp
+++ b/tdecachegrind/tdecachegrind/treemap.cpp
@@ -1148,7 +1148,7 @@ TreeMapWidget::TreeMapWidget(TreeMapItem* base,
_needsRefresh = _base;
setBackgroundMode(TQt::NoBackground);
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
_tip = new TreeMapTip(this);
}
diff --git a/umbrello/umbrello/umllistview.cpp b/umbrello/umbrello/umllistview.cpp
index 6069800d..9753b81a 100644
--- a/umbrello/umbrello/umllistview.cpp
+++ b/umbrello/umbrello/umllistview.cpp
@@ -105,7 +105,7 @@ UMLListView::UMLListView(TQWidget *parent, const char *name)
setItemsMovable(true);
setItemsRenameable( true );
setSelectionModeExt(FileManager);
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
setDragEnabled(true);
setColumnWidthMode( 0, Manual );
setDefaultRenameAction( Accept );