summaryrefslogtreecommitdiff
path: root/core/pim/todo/tableview.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/tableview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 0b1c579..b7458d8 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -192,13 +192,13 @@ QString TableView::currentRepresentation() {
void TableView::showOverDue( bool ) {
clear();
updateView();
}
void TableView::updateView( ) {
- Opie::Core::owarn << "update view" << oendl;
+ owarn << "update view" << oendl;
m_row = false;
static int id;
id = startTimer(4000 );
/* FIXME we want one page to be read!
*
* Calculate that screensize
@@ -206,13 +206,13 @@ void TableView::updateView( ) {
todoWindow()->setReadAhead( 4 );
sort();
OPimTodoAccess::List::Iterator it, end;
it = sorted().begin();
end = sorted().end();
- Opie::Core::owarn << "setTodos" << oendl;
+ owarn << "setTodos" << oendl;
QTime time;
time.start();
m_enablePaint = false;
setUpdatesEnabled( false );
viewport()->setUpdatesEnabled( false );
@@ -252,17 +252,17 @@ void TableView::replaceEvent( const OPimTodo& ev) {
* either this or the old align table
*/
void TableView::removeEvent( int ) {
updateView();
}
void TableView::setShowCompleted( bool b) {
- Opie::Core::owarn << "Show Completed " << b << oendl;
+ owarn << "Show Completed " << b << oendl;
updateView();
}
void TableView::setShowDeadline( bool b ) {
- Opie::Core::owarn << "Show Deadline " << b << oendl;
+ owarn << "Show Deadline " << b << oendl;
if ( b )
showColumn( 3 );
else
hideColumn( 3 );
// Try to intelligently size columns
@@ -279,13 +279,13 @@ void TableView::setShowDeadline( bool b ) {
setColumnWidth( 3, width );
col2width -= width;
}
setColumnWidth( 2, col2width );
}
void TableView::setShowCategory( const QString& str) {
- Opie::Core::owarn << "setShowCategory" << oendl;
+ owarn << "setShowCategory" << oendl;
if ( str != m_oleCat || m_first )
updateView();
m_oleCat = str;
m_first = false;
@@ -344,21 +344,21 @@ void TableView::slotClicked(int row, int col, int,
}
void TableView::slotPressed(int row, int col, int,
const QPoint& point) {
- Opie::Core::owarn << "pressed row " << row << " col " << col << " x:" << point.x()
+ owarn << "pressed row " << row << " col " << col << " x:" << point.x()
<< "+y:" << point.y() << oendl;
m_prevP = point;
/* TextColumn column */
if ( col == 2 && cellGeometry( row, col ).contains( point ) )
m_menuTimer->start( 750, TRUE );
}
void TableView::slotValueChanged( int, int ) {
- Opie::Core::owarn << "Value Changed" << oendl;
+ owarn << "Value Changed" << oendl;
}
void TableView::slotCurrentChanged(int, int ) {
m_menuTimer->stop();
}
QWidget* TableView::widget() {
return this;
@@ -368,13 +368,13 @@ QWidget* TableView::widget() {
* because we want to sort whole row
* based
* We event want to set the setOrder
* to a sort() and update()
*/
void TableView::sortColumn( int col, bool asc, bool ) {
- Opie::Core::owarn << "bool " << asc << oendl;
+ owarn << "bool " << asc << oendl;
setSortOrder( col );
setAscending( asc );
updateView();
}
void TableView::viewportPaintEvent( QPaintEvent* e) {
if (m_enablePaint )
@@ -491,13 +491,13 @@ QWidget* TableView::createEditor(int row, int col, bool )const {
case 0:
default:
return 0l;
}
}
void TableView::setCellContentFromEditor(int row, int col ) {
- Opie::Core::owarn << "set cell content from editor" << oendl;
+ owarn << "set cell content from editor" << oendl;
if ( col == 1 ) {
QWidget* wid = cellWidget(row, 1 );
if ( wid->inherits("QComboBox") ) {
int pri = ((QComboBox*)wid)->currentItem() + 1;
OPimTodo todo = sorted()[row];
if ( todo.priority() != pri ) {
@@ -575,13 +575,13 @@ void TableView::timerEvent( QTimerEvent* ) {
* row and two columns!
*/
void TableView::contentsMouseReleaseEvent( QMouseEvent* e) {
int row = rowAt(m_prevP.y());
int colOld = columnAt(m_prevP.x() );
int colNew = columnAt(e->x() );
- Opie::Core::owarn << "colNew: " << colNew << " colOld: " << colOld << oendl;
+ owarn << "colNew: " << colNew << " colOld: " << colOld << oendl;
if ( row == rowAt( e->y() ) && row != -1 &&
colOld != colNew ) {
TodoView::complete( sorted()[row] );
return;
}
QTable::contentsMouseReleaseEvent( e );