diff options
author | Michele Calgaro <[email protected]> | 2023-11-24 10:46:45 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-24 22:27:59 +0900 |
commit | 265b1c8ca4e418504a03ddff38583490c615d9c6 (patch) | |
tree | a91c0e2e5985cef07c4e6c1c8d381b9d3240e822 /src | |
parent | 860d3e1ffbf7e5d24815e31c07cd349301c39539 (diff) | |
download | kvirc-265b1c8ca4e418504a03ddff38583490c615d9c6.tar.gz kvirc-265b1c8ca4e418504a03ddff38583490c615d9c6.zip |
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d65a880c1c2a9a151a9a7d3c42cccf1e253f8996)
Diffstat (limited to 'src')
-rw-r--r-- | src/kvilib/tal/kvi_tal_listview.cpp | 6 | ||||
-rw-r--r-- | src/kvirc/ui/kvi_customtoolbar.cpp | 2 | ||||
-rw-r--r-- | src/kvirc/ui/kvi_input.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/kvilib/tal/kvi_tal_listview.cpp b/src/kvilib/tal/kvi_tal_listview.cpp index c41c909e..1bb6bdc9 100644 --- a/src/kvilib/tal/kvi_tal_listview.cpp +++ b/src/kvilib/tal/kvi_tal_listview.cpp @@ -691,7 +691,7 @@ if(!parentControl) x += 3; if ( !pixmap( 0 ) ) { - lv->style().tqdrawPrimitive(TQStyle::PE_CheckListController, p, + lv->style().drawPrimitive(TQStyle::PE_CheckListController, p, TQRect(x, 0, boxsize, fm.height() + 2 + marg), cg, styleflags, TQStyleOption(this)); @@ -709,12 +709,12 @@ y = (fm.height() + 2 + marg - boxsize) / 2; if ( ( myType == CheckBox ) || ( myType == CheckBoxController ) ) { - lv->style().tqdrawPrimitive(TQStyle::PE_CheckListIndicator, p, + lv->style().drawPrimitive(TQStyle::PE_CheckListIndicator, p, TQRect(x, y, boxsize, fm.height() + 2 + marg), cg, styleflags, TQStyleOption(this)); } else { //radio button look - lv->style().tqdrawPrimitive(TQStyle::PE_CheckListExclusiveIndicator, + lv->style().drawPrimitive(TQStyle::PE_CheckListExclusiveIndicator, p, TQRect(x, y, boxsize, fm.height() + 2 + marg), cg, styleflags, TQStyleOption(this)); diff --git a/src/kvirc/ui/kvi_customtoolbar.cpp b/src/kvirc/ui/kvi_customtoolbar.cpp index 2af3c95f..5adb02d2 100644 --- a/src/kvirc/ui/kvi_customtoolbar.cpp +++ b/src/kvirc/ui/kvi_customtoolbar.cpp @@ -66,7 +66,7 @@ void KviCustomToolBarSeparator::paintEvent(TQPaintEvent *) TQPainter p(this); TQStyle::SFlags flags = TQStyle::Style_Default; if(m_pToolBar->orientation() == TQt::Horizontal)flags |= TQStyle::Style_Horizontal; - style().tqdrawPrimitive(TQStyle::PE_DockWindowSeparator,&p,rect(),colorGroup(),flags); + style().drawPrimitive(TQStyle::PE_DockWindowSeparator,&p,rect(),colorGroup(),flags); } diff --git a/src/kvirc/ui/kvi_input.cpp b/src/kvirc/ui/kvi_input.cpp index c9390f32..a34d9ccb 100644 --- a/src/kvirc/ui/kvi_input.cpp +++ b/src/kvirc/ui/kvi_input.cpp @@ -292,7 +292,7 @@ TQSize KviInputEditor::sizeHint() const int h = TQMAX(fm.lineSpacing(), 14) + 2*2; /* innerMargin */ int w = fm.width( 'x' ) * 17; // "some" int m = frameWidth() * 2; - return (style().tqsizeFromContents(TQStyle::CT_LineEdit, this, + return (style().sizeFromContents(TQStyle::CT_LineEdit, this, TQSize( w + m, h + m ). expandedTo(TQApplication::globalStrut()))); } |