summaryrefslogtreecommitdiffstats
path: root/kexi/widget/relations
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-05 11:54:26 +0900
committerMichele Calgaro <[email protected]>2023-11-16 23:37:57 +0900
commitef06f14f2475bd08d3ea2ceec54a7b2238f3554e (patch)
tree03df826633e4ba084d133ca977c4fc37c74f21ac /kexi/widget/relations
parent895081803a715ee89f4a90cfbf63d558ef2b2ebc (diff)
downloadkoffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.tar.gz
koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kexi/widget/relations')
-rw-r--r--kexi/widget/relations/kexirelationview.cpp4
-rw-r--r--kexi/widget/relations/kexirelationviewtable.cpp10
2 files changed, 7 insertions, 7 deletions
diff --git a/kexi/widget/relations/kexirelationview.cpp b/kexi/widget/relations/kexirelationview.cpp
index 47e9c859..81ce1382 100644
--- a/kexi/widget/relations/kexirelationview.cpp
+++ b/kexi/widget/relations/kexirelationview.cpp
@@ -383,7 +383,7 @@ KexiRelationView::contentsMousePressEvent(TQMouseEvent *ev)
emit connectionViewGotFocus();
// invalidateActions();
- if(ev->button() == Qt::RightButton) {//show popup
+ if(ev->button() == TQt::RightButton) {//show popup
kdDebug() << "KexiRelationView::contentsMousePressEvent(): context" << endl;
// TQPopupMenu m;
// m_removeSelectedTableQueryAction->plug( &m );
@@ -396,7 +396,7 @@ KexiRelationView::contentsMousePressEvent(TQMouseEvent *ev)
//connection not found
clearSelection();
// invalidateActions();
- if(ev->button() == Qt::RightButton) {//show popup on view background area
+ if(ev->button() == TQt::RightButton) {//show popup on view background area
// TQPopupMenu m;
// m_removeSelectedConnectionAction->plug( &m );
emit emptyAreaContextMenuRequest( ev->globalPos() );
diff --git a/kexi/widget/relations/kexirelationviewtable.cpp b/kexi/widget/relations/kexirelationviewtable.cpp
index 4bab34e4..2e18e00a 100644
--- a/kexi/widget/relations/kexirelationviewtable.cpp
+++ b/kexi/widget/relations/kexirelationviewtable.cpp
@@ -208,7 +208,7 @@ bool KexiRelationViewTableContainerHeader::eventFilter(TQObject *, TQEvent *ev)
{
if (ev->type()==TQEvent::MouseMove)
{
- if (m_dragging && TQT_TQMOUSEEVENT(ev)->state()==Qt::LeftButton) {
+ if (m_dragging && TQT_TQMOUSEEVENT(ev)->state()==TQt::LeftButton) {
int diffX,diffY;
diffX=TQT_TQMOUSEEVENT(ev)->globalPos().x()-m_grabX;
diffY=TQT_TQMOUSEEVENT(ev)->globalPos().y()-m_grabY;
@@ -260,7 +260,7 @@ void KexiRelationViewTableContainerHeader::mousePressEvent(TQMouseEvent *ev) {
kdDebug()<<"KexiRelationViewTableContainerHeader::Mouse Press Event"<<endl;
parentWidget()->setFocus();
ev->accept();
- if (ev->button()==Qt::LeftButton) {
+ if (ev->button()==TQt::LeftButton) {
m_dragging=true;
m_grabX=ev->globalPos().x();
m_grabY=ev->globalPos().y();
@@ -269,7 +269,7 @@ void KexiRelationViewTableContainerHeader::mousePressEvent(TQMouseEvent *ev) {
setCursor(TQt::SizeAllCursor);
return;
}
- if (ev->button()==Qt::RightButton) {
+ if (ev->button()==TQt::RightButton) {
emit static_cast<KexiRelationViewTableContainer*>(parentWidget())
->contextMenuRequest(ev->globalPos());
}
@@ -278,7 +278,7 @@ void KexiRelationViewTableContainerHeader::mousePressEvent(TQMouseEvent *ev) {
void KexiRelationViewTableContainerHeader::mouseReleaseEvent(TQMouseEvent *ev) {
kdDebug()<<"KexiRelationViewTableContainerHeader::Mouse Release Event"<<endl;
- if (m_dragging && ev->button() & Qt::LeftButton) {
+ if (m_dragging && ev->button() & TQt::LeftButton) {
setCursor(TQt::ArrowCursor);
m_dragging=false;
emit endDrag();
@@ -413,7 +413,7 @@ void KexiRelationViewTable::contentsMousePressEvent(TQMouseEvent *ev)
parentWidget()->setFocus();
setFocus();
TDEListView::contentsMousePressEvent(ev);
-// if (ev->button()==Qt::RightButton)
+// if (ev->button()==TQt::RightButton)
// static_cast<KexiRelationView*>(parentWidget())->executePopup(ev->pos());
}