summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-05 11:54:26 +0900
committerMichele Calgaro <[email protected]>2023-11-16 23:40:13 +0900
commitc8c5e11f05f023849896d09cf06917e9a2c016ca (patch)
treea62f00b0249b967528e115e2123b56d40633c17a /kexi/widget/tableview
parentc9973bfbf1091ef91f30b5ab456015676123aa47 (diff)
downloadkoffice-c8c5e11f05f023849896d09cf06917e9a2c016ca.tar.gz
koffice-c8c5e11f05f023849896d09cf06917e9a2c016ca.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit ef06f14f2475bd08d3ea2ceec54a7b2238f3554e)
Diffstat (limited to 'kexi/widget/tableview')
-rw-r--r--kexi/widget/tableview/kexiblobtableedit.cpp8
-rw-r--r--kexi/widget/tableview/kexicomboboxpopup.cpp2
-rw-r--r--kexi/widget/tableview/kexicomboboxtableedit.cpp2
-rw-r--r--kexi/widget/tableview/kexidataawareobjectiface.cpp2
-rw-r--r--kexi/widget/tableview/kexidatetableedit.cpp2
-rw-r--r--kexi/widget/tableview/kexitableview.cpp16
6 files changed, 16 insertions, 16 deletions
diff --git a/kexi/widget/tableview/kexiblobtableedit.cpp b/kexi/widget/tableview/kexiblobtableedit.cpp
index 0c153c75..75f51611 100644
--- a/kexi/widget/tableview/kexiblobtableedit.cpp
+++ b/kexi/widget/tableview/kexiblobtableedit.cpp
@@ -413,13 +413,13 @@ bool KexiBlobTableEdit::handleKeyPress( TQKeyEvent* ke, bool editorActive )
const int k = ke->key();
KKey kkey(ke);
if (!d->readOnly) {
- if ((ke->state()==Qt::NoButton && k==TQt::Key_F4)
+ if ((ke->state()==TQt::NoButton && k==TQt::Key_F4)
|| (ke->state()==TQt::AltButton && k==TQt::Key_Down)) {
d->button->animateClick();
- TQMouseEvent me( TQEvent::MouseButtonPress, TQPoint(2,2), Qt::LeftButton, Qt::NoButton );
+ TQMouseEvent me( TQEvent::MouseButtonPress, TQPoint(2,2), TQt::LeftButton, TQt::NoButton );
TQApplication::sendEvent( d->button, &me );
}
- else if ((ke->state()==Qt::NoButton && (k==TQt::Key_F2 || k==TQt::Key_Space || k==TQt::Key_Enter || k==TQt::Key_Return))) {
+ else if ((ke->state()==TQt::NoButton && (k==TQt::Key_F2 || k==TQt::Key_Space || k==TQt::Key_Enter || k==TQt::Key_Return))) {
d->popup->insertFromFile();
}
else
@@ -459,7 +459,7 @@ bool KexiBlobTableEdit::eventFilter( TQObject *o, TQEvent *e )
TQKeyEvent* ke = TQT_TQKEYEVENT(e);
const int state = ke->state();
const int k = ke->key();
- if ( (state==Qt::NoButton && (k==TQt::Key_Tab || k==TQt::Key_Left || k==TQt::Key_Right))
+ if ( (state==TQt::NoButton && (k==TQt::Key_Tab || k==TQt::Key_Left || k==TQt::Key_Right))
|| (state==TQt::ShiftButton && k==TQt::Key_Backtab)
)
{
diff --git a/kexi/widget/tableview/kexicomboboxpopup.cpp b/kexi/widget/tableview/kexicomboboxpopup.cpp
index 8a0e678a..dfd6edb4 100644
--- a/kexi/widget/tableview/kexicomboboxpopup.cpp
+++ b/kexi/widget/tableview/kexicomboboxpopup.cpp
@@ -353,7 +353,7 @@ bool KexiComboBoxPopup::eventFilter( TQObject *o, TQEvent *e )
if (e->type()==TQEvent::KeyPress) {
TQKeyEvent *ke = TQT_TQKEYEVENT(e);
const int k = ke->key();
- if ((ke->state()==Qt::NoButton && (k==Key_Escape || k==Key_F4))
+ if ((ke->state()==TQt::NoButton && (k==Key_Escape || k==Key_F4))
|| (ke->state()==AltButton && k==Key_Up))
{
hide();
diff --git a/kexi/widget/tableview/kexicomboboxtableedit.cpp b/kexi/widget/tableview/kexicomboboxtableedit.cpp
index 9eecc498..a818e40b 100644
--- a/kexi/widget/tableview/kexicomboboxtableedit.cpp
+++ b/kexi/widget/tableview/kexicomboboxtableedit.cpp
@@ -298,7 +298,7 @@ void KexiComboBoxTableEdit::show()
bool KexiComboBoxTableEdit::handleKeyPress( TQKeyEvent *ke, bool editorActive )
{
const int k = ke->key();
- if ((ke->state()==Qt::NoButton && k==TQt::Key_F4)
+ if ((ke->state()==TQt::NoButton && k==TQt::Key_F4)
|| (ke->state()==AltButton && k==TQt::Key_Down))
{
//show popup
diff --git a/kexi/widget/tableview/kexidataawareobjectiface.cpp b/kexi/widget/tableview/kexidataawareobjectiface.cpp
index 4ff50673..2ba85294 100644
--- a/kexi/widget/tableview/kexidataawareobjectiface.cpp
+++ b/kexi/widget/tableview/kexidataawareobjectiface.cpp
@@ -1668,7 +1668,7 @@ bool KexiDataAwareObjectInterface::handleKeyPress(TQKeyEvent *e, int &curRow, in
if (moveToLastField)
*moveToLastField = false;
- const bool nobtn = e->state()==Qt::NoButton;
+ const bool nobtn = e->state()==TQt::NoButton;
const int k = e->key();
//kdDebug() << "-----------" << e->state() << " " << k << endl;
diff --git a/kexi/widget/tableview/kexidatetableedit.cpp b/kexi/widget/tableview/kexidatetableedit.cpp
index 36a44566..da553388 100644
--- a/kexi/widget/tableview/kexidatetableedit.cpp
+++ b/kexi/widget/tableview/kexidatetableedit.cpp
@@ -99,7 +99,7 @@ void KexiDateTableEdit::setupContents( TQPainter *p, bool focused, const TQVaria
#endif
if (val.toDate().isValid())
txt = m_formatter.dateToString(val.toDate());
-// txt = val.toDate().toString(Qt::LocalDate);
+// txt = val.toDate().toString(TQt::LocalDate);
align |= AlignLeft;
}
diff --git a/kexi/widget/tableview/kexitableview.cpp b/kexi/widget/tableview/kexitableview.cpp
index 39e397ea..284cbd1d 100644
--- a/kexi/widget/tableview/kexitableview.cpp
+++ b/kexi/widget/tableview/kexitableview.cpp
@@ -241,7 +241,7 @@ KexiTableView::KexiTableView(KexiTableViewData* data, TQWidget* parent, const ch
// Create headers
m_horizontalHeader = new KexiTableViewHeader(this, "topHeader");
m_horizontalHeader->setSelectionBackgroundColor( palette().active().highlight() );
- m_horizontalHeader->setOrientation(Qt::Horizontal);
+ m_horizontalHeader->setOrientation(TQt::Horizontal);
m_horizontalHeader->setTracking(false);
m_horizontalHeader->setMovingEnabled(false);
connect(m_horizontalHeader, TQT_SIGNAL(sizeChange(int,int,int)), this, TQT_SLOT(slotTopHeaderSizeChange(int,int,int)));
@@ -1023,11 +1023,11 @@ void KexiTableView::contentsMousePressEvent( TQMouseEvent* e )
}
// kdDebug(44021)<<"void KexiTableView::contentsMousePressEvent( TQMouseEvent* e ) by now the current items should be set, if not -> error + crash"<<endl;
- if(e->button() == Qt::RightButton)
+ if(e->button() == TQt::RightButton)
{
showContextMenu(e->globalPos());
}
- else if(e->button() == Qt::LeftButton)
+ else if(e->button() == TQt::LeftButton)
{
if(columnType(m_curCol) == KexiDB::Field::Boolean && columnEditable(m_curCol))
{
@@ -1115,7 +1115,7 @@ bool KexiTableView::handleContentsMousePressOrRelease(TQMouseEvent* e, bool rele
}
newcol = columnAt(e->pos().x());
- if(e->button() != Qt::NoButton) {
+ if(e->button() != TQt::NoButton) {
setCursorPosition(newrow,newcol);
}
return true;
@@ -1244,9 +1244,9 @@ bool KexiTableView::shortCutPressed( TQKeyEvent *e, const TQCString &action_name
if (action_name=="edit_delete_row")
return k == TQt::Key_Delete && e->state()==TQt::ControlButton;
if (action_name=="edit_delete")
- return k == TQt::Key_Delete && e->state()==Qt::NoButton;
+ return k == TQt::Key_Delete && e->state()==TQt::NoButton;
if (action_name=="edit_edititem")
- return k == TQt::Key_F2 && e->state()==Qt::NoButton;
+ return k == TQt::Key_F2 && e->state()==TQt::NoButton;
if (action_name=="edit_insert_empty_row")
return k == TQt::Key_Insert && e->state()==(TQt::ShiftButton | TQt::ControlButton);
@@ -1317,7 +1317,7 @@ void KexiTableView::keyPressEvent(TQKeyEvent* e)
int curRow = m_curRow;
int curCol = m_curCol;
- const bool nobtn = e->state()==Qt::NoButton;
+ const bool nobtn = e->state()==TQt::NoButton;
bool printable = false;
//check shared shortcuts
@@ -2423,7 +2423,7 @@ bool KexiTableView::eventFilter( TQObject *o, TQEvent *e )
return true;
}
else if (m_editor && (o==dynamic_cast<TQObject*>(m_editor) || o==m_editor->widget())) {
- if ( (k==TQt::Key_Tab && (s==Qt::NoButton || s==TQt::ShiftButton))
+ if ( (k==TQt::Key_Tab && (s==TQt::NoButton || s==TQt::ShiftButton))
|| (overrideEditorShortcutNeeded(ke))
|| (k==TQt::Key_Enter || k==TQt::Key_Return || k==TQt::Key_Up || k==TQt::Key_Down)
|| (k==TQt::Key_Left && m_editor->cursorAtStart())