summaryrefslogtreecommitdiffstats
path: root/tdeui/klineedit.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 20:33:00 +0900
committerMichele Calgaro <[email protected]>2023-11-15 23:44:25 +0900
commitc8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch)
treebae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/klineedit.cpp
parent419c185be746df8bba59fe5de991b4a2b3977897 (diff)
downloadtdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz
tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeui/klineedit.cpp')
-rw-r--r--tdeui/klineedit.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdeui/klineedit.cpp b/tdeui/klineedit.cpp
index 580f700ec..617de7675 100644
--- a/tdeui/klineedit.cpp
+++ b/tdeui/klineedit.cpp
@@ -526,7 +526,7 @@ void KLineEdit::keyPressEvent( TQKeyEvent *e )
{
KeyBindingMap keys = getKeyBindings();
TDEGlobalSettings::Completion mode = completionMode();
- bool noModifier = (e->state() == Qt::NoButton ||
+ bool noModifier = (e->state() == TQt::NoButton ||
e->state() == TQt::ShiftButton ||
e->state() == TQt::Keypad);
@@ -536,7 +536,7 @@ void KLineEdit::keyPressEvent( TQKeyEvent *e )
{
if ( !d->userSelection && hasSelectedText() &&
( e->key() == Key_Right || e->key() == Key_Left ) &&
- e->state()== Qt::NoButton )
+ e->state()== TQt::NoButton )
{
TQString old_txt = text();
d->disableRestoreSelection = true;
@@ -817,7 +817,7 @@ void KLineEdit::keyPressEvent( TQKeyEvent *e )
void KLineEdit::mouseDoubleClickEvent( TQMouseEvent* e )
{
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
{
possibleTripleClick=true;
TQTimer::singleShot( TQApplication::doubleClickInterval(),this,
@@ -828,7 +828,7 @@ void KLineEdit::mouseDoubleClickEvent( TQMouseEvent* e )
void KLineEdit::mousePressEvent( TQMouseEvent* e )
{
- if ( possibleTripleClick && e->button() == Qt::LeftButton )
+ if ( possibleTripleClick && e->button() == TQt::LeftButton )
{
selectAll();
e->accept();
@@ -841,7 +841,7 @@ void KLineEdit::mouseReleaseEvent( TQMouseEvent* e )
{
TQLineEdit::mouseReleaseEvent( e );
if (TQApplication::clipboard()->supportsSelection() ) {
- if ( e->button() == Qt::LeftButton ) {
+ if ( e->button() == TQt::LeftButton ) {
// Fix copying of squeezed text if needed
copySqueezedText( false );
}
@@ -1022,12 +1022,12 @@ bool KLineEdit::eventFilter( TQObject* o, TQEvent* ev )
{
TQKeyEvent *e = TQT_TQKEYEVENT( ev );
- if( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter )
+ if( e->key() == TQt::Key_Return || e->key() == TQt::Key_Enter )
{
bool trap = d->completionBox && d->completionBox->isVisible();
bool stopEvent = trap || (d->grabReturnKeyEvents &&
- (e->state() == Qt::NoButton ||
+ (e->state() == TQt::NoButton ||
e->state() == TQt::Keypad));
// Qt will emit returnPressed() itself if we return false
@@ -1180,7 +1180,7 @@ bool KLineEdit::overrideAccel (const TQKeyEvent* e)
int key = e->key();
ButtonState state = e->state();
if ((key == Key_Backtab || key == Key_Tab) &&
- (state == Qt::NoButton || (state & TQt::ShiftButton)))
+ (state == TQt::NoButton || (state & TQt::ShiftButton)))
{
return true;
}