summaryrefslogtreecommitdiffstats
path: root/klipper
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 21:03:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 21:03:36 +0900
commitb965cbac5b21345e9dfc768a7e4f660ffa4aa72f (patch)
tree7fcff5d301752cbdcdfff64d8791aff1369b803f /klipper
parent7d6d35b42e00d6b6658951871b29489bdec80714 (diff)
downloadtdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.tar.gz
tdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'klipper')
-rw-r--r--klipper/klipperbindings.cpp6
-rw-r--r--klipper/klipperpopup.cpp26
-rw-r--r--klipper/toplevel.cpp6
3 files changed, 19 insertions, 19 deletions
diff --git a/klipper/klipperbindings.cpp b/klipper/klipperbindings.cpp
index 6e0e33352..16b0c24f2 100644
--- a/klipper/klipperbindings.cpp
+++ b/klipper/klipperbindings.cpp
@@ -27,9 +27,9 @@
keys->insert( "Program:klipper", i18n("Clipboard") );
- DEF( I18N_NOOP("Show Klipper Popup-Menu"), ALT+CTRL+Qt::Key_V, WIN+CTRL+Qt::Key_V, slotPopupMenu() );
- DEF( I18N_NOOP("Manually Invoke Action on Current Clipboard"), ALT+CTRL+Qt::Key_R, WIN+CTRL+Qt::Key_R, slotRepeatAction() );
- DEF( I18N_NOOP("Enable/Disable Clipboard Actions"), ALT+CTRL+Qt::Key_X, WIN+CTRL+Qt::Key_X, toggleURLGrabber() );
+ DEF( I18N_NOOP("Show Klipper Popup-Menu"), ALT+CTRL+TQt::Key_V, WIN+CTRL+TQt::Key_V, slotPopupMenu() );
+ DEF( I18N_NOOP("Manually Invoke Action on Current Clipboard"), ALT+CTRL+TQt::Key_R, WIN+CTRL+TQt::Key_R, slotRepeatAction() );
+ DEF( I18N_NOOP("Enable/Disable Clipboard Actions"), ALT+CTRL+TQt::Key_X, WIN+CTRL+TQt::Key_X, toggleURLGrabber() );
#undef DEF
#undef WIN
diff --git a/klipper/klipperpopup.cpp b/klipper/klipperpopup.cpp
index 5b43fb8f5..9d3ab728d 100644
--- a/klipper/klipperpopup.cpp
+++ b/klipper/klipperpopup.cpp
@@ -45,16 +45,16 @@ namespace {
#ifdef DEBUG_EVENTS__
kdbgstream& operator<<( kdbgstream& stream, const TQKeyEvent& e ) {
stream << "(TQKeyEvent(text=" << e.text() << ",key=" << e.key() << ( e.isAccepted()?",accepted":",ignored)" ) << ",count=" << e.count();
- if ( e.state() & Qt::AltButton ) {
+ if ( e.state() & TQt::AltButton ) {
stream << ",ALT";
}
- if ( e.state() & Qt::ControlButton ) {
+ if ( e.state() & TQt::ControlButton ) {
stream << ",CTRL";
}
- if ( e.state() & Qt::MetaButton ) {
+ if ( e.state() & TQt::MetaButton ) {
stream << ",META";
}
- if ( e.state() & Qt::ShiftButton ) {
+ if ( e.state() & TQt::ShiftButton ) {
stream << ",SHIFT";
}
if ( e.isAutoRepeat() ) {
@@ -249,15 +249,15 @@ void KlipperPopup::keyPressEvent( TQKeyEvent* e ) {
// widget, except a few used for navigation:
// These go to the superobject.
switch( e->key() ) {
- case Qt::Key_Up:
- case Qt::Key_Down:
- case Qt::Key_Right:
- case Qt::Key_Left:
- case Qt::Key_Tab:
- case Qt::Key_Backtab:
- case Qt::Key_Escape:
- case Qt::Key_Return:
- case Qt::Key_Enter:
+ case TQt::Key_Up:
+ case TQt::Key_Down:
+ case TQt::Key_Right:
+ case TQt::Key_Left:
+ case TQt::Key_Tab:
+ case TQt::Key_Backtab:
+ case TQt::Key_Escape:
+ case TQt::Key_Return:
+ case TQt::Key_Enter:
{
#ifdef DEBUG_EVENTS__
kdDebug() << "Passing this event to ancestor (TDEPopupMenu): " << e << endl;
diff --git a/klipper/toplevel.cpp b/klipper/toplevel.cpp
index 1a713fe25..64b80654b 100644
--- a/klipper/toplevel.cpp
+++ b/klipper/toplevel.cpp
@@ -280,7 +280,7 @@ void KlipperWidget::clearClipboardHistory()
void KlipperWidget::mousePressEvent(TQMouseEvent *e)
{
- if ( e->button() != Qt::LeftButton && e->button() != Qt::RightButton )
+ if ( e->button() != TQt::LeftButton && e->button() != TQt::RightButton )
return;
// if we only hid the menu less than a third of a second ago,
@@ -786,8 +786,8 @@ bool KlipperWidget::blockFetchingNewData()
// contents, so in practice it's like the user has selected only the part which was
// selected when Klipper asked first.
ButtonState buttonstate = kapp->keyboardMouseState();
- if( ( buttonstate & ( ShiftButton | Qt::LeftButton )) == ShiftButton // #85198
- || ( buttonstate & Qt::LeftButton ) == Qt::LeftButton ) { // #80302
+ if( ( buttonstate & ( ShiftButton | TQt::LeftButton )) == ShiftButton // #85198
+ || ( buttonstate & TQt::LeftButton ) == TQt::LeftButton ) { // #80302
m_pendingContentsCheck = true;
m_pendingCheckTimer.start( 100, true );
return true;