summaryrefslogtreecommitdiffstats
path: root/src/devices/gui/register_view.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:30 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:30 -0600
commitad1fc5fc8eadb9b63e8767e57ac41cbac84f7eb7 (patch)
treec47273eb6595f763c282d33fb89affe1f8866120 /src/devices/gui/register_view.cpp
parent9d6927a7d6a543332f828bffedf65eecf6774c6d (diff)
downloadpiklab-ad1fc5fc8eadb9b63e8767e57ac41cbac84f7eb7.tar.gz
piklab-ad1fc5fc8eadb9b63e8767e57ac41cbac84f7eb7.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 9d6927a7d6a543332f828bffedf65eecf6774c6d.
Diffstat (limited to 'src/devices/gui/register_view.cpp')
-rw-r--r--src/devices/gui/register_view.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/gui/register_view.cpp b/src/devices/gui/register_view.cpp
index bd444c9..264a04b 100644
--- a/src/devices/gui/register_view.cpp
+++ b/src/devices/gui/register_view.cpp
@@ -43,7 +43,7 @@ void Register::PortBitListViewItem::updateView()
else text += (pdata[_bit].drivenState==Device::IoHigh ? "1" : "0");
}
setText(2, text);
- repaint();
+ tqrepaint();
}
void Register::PortBitListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align)
@@ -114,7 +114,7 @@ void Register::ListViewItem::updateView()
if ( _data.type()!=Special ) setText(0, toHexLabel(_data.address(), nbCharsAddress()) + ":");
setText(1, label());
setText(2, text());
- repaint();
+ tqrepaint();
for (uint i=0; i<_items.count(); i++) _items[i]->updateView();
}
@@ -145,8 +145,8 @@ TQString Register::ListViewItem::tooltip(int col) const
if ( isprint(c) ) s = c + s;
else s = "." + s;
}
- return TQString("%1 - %2 - \"%3\"").arg(toHexLabel(value, _data.nbChars()))
- .arg(toLabel(NumberBase::Bin, value, 4*_data.nbChars())).arg(s);
+ return TQString("%1 - %2 - \"%3\"").tqarg(toHexLabel(value, _data.nbChars()))
+ .tqarg(toLabel(NumberBase::Bin, value, 4*_data.nbChars())).tqarg(s);
}
TQWidget *Register::ListViewItem::editWidgetFactory(int col) const
@@ -176,7 +176,7 @@ void Register::LineEdit::updateText()
setText(_value.isInitialized() ? toLabel(_base, _value, _nbChars) : "--");
uint w = 2*frameWidth() + maxLabelWidth(_base, _nbChars, font());
setFixedWidth(w+5);
- setFixedHeight(minimumSizeHint().height());
+ setFixedHeight(tqminimumSizeHint().height());
}
void Register::LineEdit::setValue(NumberBase base, BitValue value, uint nbChars)