From 4419ae48793b07591929aff8c69a381e7a5bbb32 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:54:11 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro --- cervisia/cervisiapart.cpp | 6 +++--- cervisia/logtree.cpp | 2 +- cervisia/qttableview.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cervisia') 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)), -- cgit v1.2.1