summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexitableview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/tableview/kexitableview.cpp')
-rw-r--r--kexi/widget/tableview/kexitableview.cpp16
1 files changed, 8 insertions, 8 deletions
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())