summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-04 22:04:06 +0900
committerMichele Calgaro <[email protected]>2023-11-04 22:04:06 +0900
commit57545ab9c658d42570757aa95ddb5a0c23362804 (patch)
treeab253c337eaee208889cd3b5708b0dccb962f760
parenta82216a4f7d6e32c2d8dc613f9c463e33ff81f97 (diff)
downloadpiklab-57545ab9c658d42570757aa95ddb5a0c23362804.tar.gz
piklab-57545ab9c658d42570757aa95ddb5a0c23362804.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--src/common/gui/dialog.cpp2
-rw-r--r--src/common/gui/misc_gui.cpp2
-rw-r--r--src/common/gui/misc_gui.h2
-rw-r--r--src/devices/gui/memory_editor.cpp4
-rw-r--r--src/libgui/device_gui.cpp2
-rw-r--r--src/libgui/project_manager.cpp2
-rw-r--r--src/libgui/watch_view.cpp6
-rw-r--r--src/progs/direct/gui/direct_config_widget.cpp4
8 files changed, 12 insertions, 12 deletions
diff --git a/src/common/gui/dialog.cpp b/src/common/gui/dialog.cpp
index 9b24656..554f364 100644
--- a/src/common/gui/dialog.cpp
+++ b/src/common/gui/dialog.cpp
@@ -73,7 +73,7 @@ TreeListDialog::TreeListDialog(TQWidget *parent, const char *name, bool modal,
TQValueList<int> widths;
widths += 80;
widths += 500;
- Splitter *splitter = new Splitter(widths,Qt::Horizontal, mainWidget(), name);
+ Splitter *splitter = new Splitter(widths,TQt::Horizontal, mainWidget(), name);
top->addWidget(splitter);
_listView = new TDEListView(splitter);
connect(_listView, TQT_SIGNAL(currentChanged(TQListViewItem *)), TQT_SLOT(currentChanged(TQListViewItem *)));
diff --git a/src/common/gui/misc_gui.cpp b/src/common/gui/misc_gui.cpp
index 5c7edf0..0121585 100644
--- a/src/common/gui/misc_gui.cpp
+++ b/src/common/gui/misc_gui.cpp
@@ -158,7 +158,7 @@ int PopupButton::appendItem(const TQString &label, const TQPixmap &icon, int id)
}
//-----------------------------------------------------------------------------
-Splitter::Splitter(const TQValueList<int> &defaultSizes, Qt::Orientation o, TQWidget *parent, const char *name)
+Splitter::Splitter(const TQValueList<int> &defaultSizes, TQt::Orientation o, TQWidget *parent, const char *name)
: TQSplitter(o, parent, name), _defaultSizes(defaultSizes)
{
Q_ASSERT(name);
diff --git a/src/common/gui/misc_gui.h b/src/common/gui/misc_gui.h
index 0980fa6..388489f 100644
--- a/src/common/gui/misc_gui.h
+++ b/src/common/gui/misc_gui.h
@@ -90,7 +90,7 @@ class Splitter : public TQSplitter
TQ_OBJECT
public:
- Splitter(const TQValueList<int> &defaultSizes, Qt::Orientation orientation,
+ Splitter(const TQValueList<int> &defaultSizes, TQt::Orientation orientation,
TQWidget *parent, const char *name);
virtual ~Splitter();
diff --git a/src/devices/gui/memory_editor.cpp b/src/devices/gui/memory_editor.cpp
index c5d06f3..308bcbf 100644
--- a/src/devices/gui/memory_editor.cpp
+++ b/src/devices/gui/memory_editor.cpp
@@ -57,7 +57,7 @@ void Device::MemoryRangeEditor::init()
vbox->addWidget(frame);
vbox->addStretch(1);
TQHBoxLayout *fbox = new TQHBoxLayout(frame, 5, 5);
- TQGrid *grid = new TQGrid(3+_nbCols, Qt::Horizontal, frame, "memory_range_editor_grid");
+ TQGrid *grid = new TQGrid(3+_nbCols, TQt::Horizontal, frame, "memory_range_editor_grid");
fbox->addWidget(grid);
grid->setSpacing(0);
grid->setMargin(3);
@@ -89,7 +89,7 @@ void Device::MemoryRangeEditor::init()
// scrollbar if there are more lines to display than visible
_scrollbar = new TQScrollBar(0, TQMAX(_nbLines, totalNbLines)-_nbLines, 1, _nbLines, 0,
- Qt::Vertical, frame, "memory_range_editor_scrollbar");
+ TQt::Vertical, frame, "memory_range_editor_scrollbar");
connect(_scrollbar, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setIndex(int))) ;
if ( totalNbLines<=_nbLines ) _scrollbar->hide();
fbox->addWidget(_scrollbar);
diff --git a/src/libgui/device_gui.cpp b/src/libgui/device_gui.cpp
index 8b2f5f4..2c60c90 100644
--- a/src/libgui/device_gui.cpp
+++ b/src/libgui/device_gui.cpp
@@ -162,7 +162,7 @@ DeviceChooser::Dialog::Dialog(const TQString &device, Type type, TQWidget *paren
TQValueList<int> widths;
widths += 80;
widths += 500;
- Splitter *splitter = new Splitter(widths,Qt::Horizontal, mainWidget(), "device_shooser_splitter");
+ Splitter *splitter = new Splitter(widths,TQt::Horizontal, mainWidget(), "device_shooser_splitter");
top->addWidget(splitter, 1);
_listView = new TDEListView(splitter);
connect(_listView, TQT_SIGNAL(currentChanged(TQListViewItem *)),
diff --git a/src/libgui/project_manager.cpp b/src/libgui/project_manager.cpp
index 18cc33c..68bf72c 100644
--- a/src/libgui/project_manager.cpp
+++ b/src/libgui/project_manager.cpp
@@ -413,7 +413,7 @@ void ProjectManager::View::removeFile(const PURL::Url &url)
void ProjectManager::View::clicked(int button, TQListViewItem *item, const TQPoint &, int)
{
if ( item==0 ) return;
- if ( button!=Qt::LeftButton ) return;
+ if ( button!=TQt::LeftButton ) return;
const Device::Data *data = Main::deviceData();
Rtti rtti = Rtti(item->rtti());
if ( data==0 && rtti!=DeviceRtti && rtti!=RootRtti ) {
diff --git a/src/libgui/watch_view.cpp b/src/libgui/watch_view.cpp
index 7fd5e8d..b76587a 100644
--- a/src/libgui/watch_view.cpp
+++ b/src/libgui/watch_view.cpp
@@ -66,7 +66,7 @@ void Register::RegisterListView::updateView()
void Register::RegisterListView::itemClicked(int button, TQListViewItem *item, const TQPoint &, int)
{
- if ( item==0 || button!=Qt::LeftButton ) return;
+ if ( item==0 || button!=TQt::LeftButton ) return;
if ( item==firstChild() ) Main::editorManager().openEditor(EditorManager::RegisterEditor);
int id = _root->id(item);
if ( id==-1 || _ids[id].type()==Invalid ) return;
@@ -152,7 +152,7 @@ TQString Register::WatchedListView::tooltip(const TQListViewItem &item, int col)
void Register::WatchedListView::itemClicked(int button, TQListViewItem *item, const TQPoint &, int col)
{
- if ( item==0 || button!=Qt::LeftButton ) return;
+ if ( item==0 || button!=TQt::LeftButton ) return;
else if ( item->rtti()==RegisterRtti ) {
if ( col==2 && Main::programmerState()==Programmer::Halted ) static_cast<ListViewItem *>(item)->startRename();
else item->setOpen(!item->isOpen());
@@ -202,7 +202,7 @@ Register::WatchView::WatchView(TQWidget *parent)
TQVBoxLayout *top = new TQVBoxLayout(this);
TQValueList<int> sizes;
sizes.append(50);
- Splitter *splitter = new Splitter(sizes, Qt::Vertical, this, "watch_window_splitter");
+ Splitter *splitter = new Splitter(sizes, TQt::Vertical, this, "watch_window_splitter");
top->addWidget(splitter);
_registerListView = new RegisterListView(splitter);
diff --git a/src/progs/direct/gui/direct_config_widget.cpp b/src/progs/direct/gui/direct_config_widget.cpp
index b5f651c..fe46145 100644
--- a/src/progs/direct/gui/direct_config_widget.cpp
+++ b/src/progs/direct/gui/direct_config_widget.cpp
@@ -31,7 +31,7 @@ Direct::HConfigWidget::HConfigWidget(::Programmer::Base &base, TQWidget *parent,
: ::Hardware::HConfigWidget(base, parent, edit)
{
// pins assignment
- TQGroupBox *groupb = new TQGroupBox(1,Qt::Horizontal, i18n("Pin assignment"), this);
+ TQGroupBox *groupb = new TQGroupBox(1,TQt::Horizontal, i18n("Pin assignment"), this);
_mainVBox->addWidget(groupb);
TQWidget *w = new TQWidget(groupb);
TQGridLayout *grid = new TQGridLayout(w, 1, 1, 0, 10);
@@ -68,7 +68,7 @@ Direct::HConfigWidget::HConfigWidget(::Programmer::Base &base, TQWidget *parent,
TQLabel *label = new TQLabel(i18n("Clock delay"), this);
TQToolTip::add(label, i18n(DELAY_LABEL));
hbox->addWidget(label);
- _delay = new KIntNumInput(0,Qt::Horizontal, this);
+ _delay = new KIntNumInput(0,TQt::Horizontal, this);
_delay->setRange(0, 50, 5);
_delay->setEnabled(edit);
TQToolTip::add(_delay, i18n(DELAY_LABEL));