summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:47:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-03 22:33:33 +0900
commit85ec028d6badd6fda0b194b62e19f8848e6524af (patch)
tree38d2e35ef1224d0055eaae3197078f75c77ead31
parente73c7baebb1402b681c42d8e48b58c8a0644af22 (diff)
downloadpiklab-85ec028d6badd6fda0b194b62e19f8848e6524af.tar.gz
piklab-85ec028d6badd6fda0b194b62e19f8848e6524af.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d02729663347c003e8afbeda0e3d9227aff5806b)
-rw-r--r--src/common/common/synchronous.cpp2
-rw-r--r--src/common/gui/hexword_gui.cpp2
-rw-r--r--src/libgui/toplevel.cpp6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/common/common/synchronous.cpp b/src/common/common/synchronous.cpp
index 05c535e..dbf782f 100644
--- a/src/common/common/synchronous.cpp
+++ b/src/common/common/synchronous.cpp
@@ -26,7 +26,7 @@ bool Synchronous::enterLoop()
TQWidget *dummy = 0;
if ( tqApp->type()!=TQApplication::Tty ) {
dummy = new TQWidget(0, 0, WType_Dialog | WShowModal);
- dummy->setFocusPolicy(TQ_NoFocus);
+ dummy->setFocusPolicy(TQWidget::NoFocus);
tqt_enter_modal(dummy);
}
TQApplication::eventLoop()->enterLoop();
diff --git a/src/common/gui/hexword_gui.cpp b/src/common/gui/hexword_gui.cpp
index 3030d65..d6ee42f 100644
--- a/src/common/gui/hexword_gui.cpp
+++ b/src/common/gui/hexword_gui.cpp
@@ -31,7 +31,7 @@ TQValidator::State HexValueValidator::validate(TQString &input, int &) const
GenericHexWordEditor::GenericHexWordEditor(uint nbChars, bool hasBlankValue, TQWidget *parent)
: KLineEdit(parent, "hex_word_editor"), _nbChars(nbChars), _hasBlankValue(hasBlankValue)
{
- setFocusPolicy(TQ_ClickFocus);
+ setFocusPolicy(TQWidget::ClickFocus);
setValidator(new HexValueValidator(nbChars, TQT_TQOBJECT(this)));
connect(this, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotTextChanged()));
setFrame(false);
diff --git a/src/libgui/toplevel.cpp b/src/libgui/toplevel.cpp
index 69d8768..591f166 100644
--- a/src/libgui/toplevel.cpp
+++ b/src/libgui/toplevel.cpp
@@ -137,19 +137,19 @@ MainWindow::MainWindow()
dock = createDock("compile_log_dock_widget", loader.loadIcon("piklab_compile", TDEIcon::Small),
i18n("Compile Log"), DockPosition(KDockWidget::DockBottom, 80));
Main::_compileLog = new Compile::LogWidget(dock);
- Main::_compileLog->setFocusPolicy(TQ_NoFocus);
+ Main::_compileLog->setFocusPolicy(TQWidget::NoFocus);
dock->setWidget(Main::_compileLog);
dock = createDock("program_log_dock_widget", loader.loadIcon("piklab_burnchip", TDEIcon::Small),
i18n("Program Log"), DockPosition("compile_log_dock_widget"));
_programLog = new Log::Widget(dock, "program_log");
- _programLog->setFocusPolicy(TQ_NoFocus);
+ _programLog->setFocusPolicy(TQWidget::NoFocus);
dock->setWidget(_programLog);
dock = createDock("breakpoints_dock_widget", loader.loadIcon("piklab_breakpoint_active", TDEIcon::Small),
i18n("Breakpoints"), DockPosition("compile_log_dock_widget"));
Main::_breakpointsView = new Breakpoint::View(dock);
- Main::_breakpointsView->setFocusPolicy(TQ_NoFocus);
+ Main::_breakpointsView->setFocusPolicy(TQWidget::NoFocus);
dock->setWidget(Main::_breakpointsView);
dock = createDock("console_dock_widget", loader.loadIcon("konsole", TDEIcon::Small),