summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/selectablelineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kregexpeditor/selectablelineedit.cpp')
-rw-r--r--kregexpeditor/selectablelineedit.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kregexpeditor/selectablelineedit.cpp b/kregexpeditor/selectablelineedit.cpp
index ac42c83..0e085d5 100644
--- a/kregexpeditor/selectablelineedit.cpp
+++ b/kregexpeditor/selectablelineedit.cpp
@@ -33,23 +33,23 @@ SelectableLineEdit::SelectableLineEdit( RegExpWidget* owner, TQWidget* parent, c
void SelectableLineEdit::setSelected( bool selected )
{
if ( selected ) {
- TQPalette pal = TQPalette(tqpalette());
+ TQPalette pal = TQPalette(palette());
pal.setBrush( TQColorGroup::Base, gray );
setPalette( pal );
}
else {
unsetPalette();
}
- tqrepaint();
+ repaint();
}
-TQSize SelectableLineEdit::tqsizeHint() const
+TQSize SelectableLineEdit::sizeHint() const
{
int frameWidth = frame() ? 8 : 4; // from TQLineEdit source
TQFontMetrics metrics = fontMetrics();
int actualSize = metrics.width( text() );
int charWidth = metrics.maxWidth();
- int height = TQLineEdit::tqsizeHint().height();
+ int height = TQLineEdit::sizeHint().height();
int width;
if ( hasFocus() )
@@ -67,7 +67,7 @@ void SelectableLineEdit::slotKeyPressed()
int actualSize = metrics.width( text() );
if ( actualSize > size().width()-frameWidth ) {
- tqrepaint();
+ repaint();
emit parentPleaseUpdate();
}
}