diff options
author | Michele Calgaro <[email protected]> | 2023-11-24 10:47:46 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-24 22:32:24 +0900 |
commit | f9893e5b16c7694da25e60805fe751691e127e85 (patch) | |
tree | 2b204fdab8798eaed0346d1b24bb646c6c89085c /kexi/widget | |
parent | 8263fdf7603821cad365e436ab78557f40a9e9db (diff) | |
download | koffice-f9893e5b16c7694da25e60805fe751691e127e85.tar.gz koffice-f9893e5b16c7694da25e60805fe751691e127e85.zip |
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit dcc4dc7a89e5f5f7fb4217815b892f4b0106d5a0)
Diffstat (limited to 'kexi/widget')
-rw-r--r-- | kexi/widget/kexismalltoolbutton.cpp | 2 | ||||
-rw-r--r-- | kexi/widget/pixmapcollection.cpp | 6 | ||||
-rw-r--r-- | kexi/widget/relations/kexirelationviewtable.cpp | 2 | ||||
-rw-r--r-- | kexi/widget/utils/kexicomboboxdropdownbutton.cpp | 2 | ||||
-rw-r--r-- | kexi/widget/utils/kexidropdownbutton.cpp | 2 | ||||
-rw-r--r-- | kexi/widget/utils/kexirecordmarker.cpp | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/kexi/widget/kexismalltoolbutton.cpp b/kexi/widget/kexismalltoolbutton.cpp index bb3b0ec8..e7d5c6b9 100644 --- a/kexi/widget/kexismalltoolbutton.cpp +++ b/kexi/widget/kexismalltoolbutton.cpp @@ -124,7 +124,7 @@ void KexiSmallToolButton::drawButton( TQPainter *_painter ) arrowFlags |= TQStyle::Style_Down; if (isEnabled()) arrowFlags |= TQStyle::Style_Enabled; - style().tqdrawPrimitive(TQStyle::PE_ArrowDown, _painter, + style().drawPrimitive(TQStyle::PE_ArrowDown, _painter, TQRect(width()-7, height()-7, 5, 5), colorGroup(), arrowFlags, TQStyleOption() ); } diff --git a/kexi/widget/pixmapcollection.cpp b/kexi/widget/pixmapcollection.cpp index 3ad9e556..9248916c 100644 --- a/kexi/widget/pixmapcollection.cpp +++ b/kexi/widget/pixmapcollection.cpp @@ -60,7 +60,7 @@ PixmapCollection::addPixmapPath(const KURL &url) name += "2"; } - m_pixmaps.insert(name, tqMakePair(url.path(), 0)); + m_pixmaps.insert(name, qMakePair(url.path(), 0)); return name; } @@ -78,7 +78,7 @@ PixmapCollection::addPixmapName(const TQString &icon, int size) name += "2"; } - m_pixmaps.insert(name, tqMakePair(icon, size)); + m_pixmaps.insert(name, qMakePair(icon, size)); return name; } @@ -144,7 +144,7 @@ PixmapCollection::load(TQDomNode node) for(TQDomNode n = node.firstChild(); !n.isNull(); n = n.nextSibling()) { TQDomElement el = n.toElement(); - TQPair<TQString, int> pair = tqMakePair(el.text(), el.attribute("size").toInt()); + TQPair<TQString, int> pair = qMakePair(el.text(), el.attribute("size").toInt()); m_pixmaps[el.attribute("name")] = pair; } } diff --git a/kexi/widget/relations/kexirelationviewtable.cpp b/kexi/widget/relations/kexirelationviewtable.cpp index 2e18e00a..347805be 100644 --- a/kexi/widget/relations/kexirelationviewtable.cpp +++ b/kexi/widget/relations/kexirelationviewtable.cpp @@ -420,7 +420,7 @@ void KexiRelationViewTable::contentsMousePressEvent(TQMouseEvent *ev) TQRect KexiRelationViewTable::drawItemHighlighter(TQPainter *painter, TQListViewItem *item) { if (painter) { - style().tqdrawPrimitive(TQStyle::PE_FocusRect, painter, itemRect(item), colorGroup(), + style().drawPrimitive(TQStyle::PE_FocusRect, painter, itemRect(item), colorGroup(), TQStyle::Style_FocusAtBorder); } return itemRect(item); diff --git a/kexi/widget/utils/kexicomboboxdropdownbutton.cpp b/kexi/widget/utils/kexicomboboxdropdownbutton.cpp index 319bf305..dd55920c 100644 --- a/kexi/widget/utils/kexicomboboxdropdownbutton.cpp +++ b/kexi/widget/utils/kexicomboboxdropdownbutton.cpp @@ -64,7 +64,7 @@ void KexiComboBoxDropDownButton::drawButton(TQPainter *p) } else { r.setWidth(r.width()+2); - style().tqdrawPrimitive( TQStyle::PE_ArrowDown, p, r, colorGroup(), flags); + style().drawPrimitive( TQStyle::PE_ArrowDown, p, r, colorGroup(), flags); } } diff --git a/kexi/widget/utils/kexidropdownbutton.cpp b/kexi/widget/utils/kexidropdownbutton.cpp index 68ba7deb..17501673 100644 --- a/kexi/widget/utils/kexidropdownbutton.cpp +++ b/kexi/widget/utils/kexidropdownbutton.cpp @@ -54,7 +54,7 @@ void KexiDropDownButton::drawButton( TQPainter *p ) arrowFlags |= TQStyle::Style_Down; if (isEnabled()) arrowFlags |= TQStyle::Style_Enabled; - style().tqdrawPrimitive(TQStyle::PE_ArrowDown, p, + style().drawPrimitive(TQStyle::PE_ArrowDown, p, TQRect((width()-7)/2, height()-9, 7, 7), colorGroup(), arrowFlags, TQStyleOption() ); } diff --git a/kexi/widget/utils/kexirecordmarker.cpp b/kexi/widget/utils/kexirecordmarker.cpp index ff97d21a..4309cd7f 100644 --- a/kexi/widget/utils/kexirecordmarker.cpp +++ b/kexi/widget/utils/kexirecordmarker.cpp @@ -205,7 +205,7 @@ void KexiRecordMarker::paintEvent(TQPaintEvent *e) int y = ((d->rowHeight * i)-d->offset); TQRect r(0, y, width(), d->rowHeight); p.drawRect(r); - style().tqdrawPrimitive( TQStyle::PE_HeaderSection, &p, r, + style().drawPrimitive( TQStyle::PE_HeaderSection, &p, r, (d->currentRow == i) ? selectedColorGroup : (d->highlightedRow == i ? highlightedColorGroup : colorGroup()), TQStyle::Style_Raised | (isEnabled() ? TQStyle::Style_Enabled : 0)); } |