summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp2
-rw-r--r--libopie/colorpopupmenu.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 294f37c..5609211 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -55,33 +55,33 @@
55#include <sys/types.h> 55#include <sys/types.h>
56#include <fcntl.h> 56#include <fcntl.h>
57#include <unistd.h> 57#include <unistd.h>
58 58
59#include <stdlib.h> 59#include <stdlib.h>
60 60
61static QString todolistXMLFilename() 61static QString todolistXMLFilename()
62{ 62{
63 return Global::applicationFileName("todolist","todolist.xml"); 63 return Global::applicationFileName("todolist","todolist.xml");
64} 64}
65 65
66static QString categoriesXMLFilename() 66static QString categoriesXMLFilename()
67{ 67{
68 return Global::applicationFileName("todolist","categories.xml"); 68 return Global::applicationFileName("todolist","categories.xml");
69} 69}
70 70
71TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f = 0 ) : 71TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) :
72 QMainWindow( parent, name, f ), syncing(FALSE) 72 QMainWindow( parent, name, f ), syncing(FALSE)
73{ 73{
74// QTime t; 74// QTime t;
75// t.start(); 75// t.start();
76 mView = 0l; 76 mView = 0l;
77 mStack = new QWidgetStack(this, "main stack"); 77 mStack = new QWidgetStack(this, "main stack");
78 setCaption( tr("Todo") ); 78 setCaption( tr("Todo") );
79 QString str; 79 QString str;
80 table = new TodoTable( this ); 80 table = new TodoTable( this );
81 table->setColumnWidth( 2, 10 ); 81 table->setColumnWidth( 2, 10 );
82 table->setPaintingEnabled( FALSE ); 82 table->setPaintingEnabled( FALSE );
83 table->setUpdatesEnabled( FALSE ); 83 table->setUpdatesEnabled( FALSE );
84 table->viewport()->setUpdatesEnabled( FALSE ); 84 table->viewport()->setUpdatesEnabled( FALSE );
85 85
86 { 86 {
87 str = todolistXMLFilename(); 87 str = todolistXMLFilename();
diff --git a/libopie/colorpopupmenu.cpp b/libopie/colorpopupmenu.cpp
index 9b50a8b..17e2c0a 100644
--- a/libopie/colorpopupmenu.cpp
+++ b/libopie/colorpopupmenu.cpp
@@ -74,33 +74,33 @@ void ColorPanelButton::paintEvent( QPaintEvent* e )
74 74
75 QPainter painter; 75 QPainter painter;
76 painter.begin( this ); 76 painter.begin( this );
77 painter.fillRect( 2, 2, 12, 12, m_color ); 77 painter.fillRect( 2, 2, 12, 12, m_color );
78 painter.setPen( Qt::black ); 78 painter.setPen( Qt::black );
79 painter.drawRect( 2, 2, 12, 12 ); 79 painter.drawRect( 2, 2, 12, 12 );
80 painter.end(); 80 painter.end();
81} 81}
82 82
83void ColorPanelButton::mouseReleaseEvent( QMouseEvent* e ) 83void ColorPanelButton::mouseReleaseEvent( QMouseEvent* e )
84{ 84{
85 Q_UNUSED( e ) 85 Q_UNUSED( e )
86 86
87 emit selected( m_color ); 87 emit selected( m_color );
88} 88}
89 89
90ColorPopupMenu::ColorPopupMenu( const QColor& color, QWidget* parent = 0, const char* name = 0 ) 90ColorPopupMenu::ColorPopupMenu( const QColor& color, QWidget* parent, const char* name )
91 : QPopupMenu( parent, name ) 91 : QPopupMenu( parent, name )
92{ 92{
93 m_color = color; 93 m_color = color;
94 94
95 colorPanel = new QWidget( this ); 95 colorPanel = new QWidget( this );
96 96
97 colorLayout = new QGridLayout(colorPanel, 5, 6); 97 colorLayout = new QGridLayout(colorPanel, 5, 6);
98 98
99 addColor(QColor(255, 255, 255), 0, 1); 99 addColor(QColor(255, 255, 255), 0, 1);
100 addColor(QColor(192, 192, 192), 0, 2); 100 addColor(QColor(192, 192, 192), 0, 2);
101 addColor(QColor(128, 128, 128), 0, 3); 101 addColor(QColor(128, 128, 128), 0, 3);
102 addColor(QColor(64, 64, 64), 0, 4); 102 addColor(QColor(64, 64, 64), 0, 4);
103 addColor(QColor(0, 0, 0), 0, 5); 103 addColor(QColor(0, 0, 0), 0, 5);
104 104
105 addColor(QColor(255, 0, 0), 1, 0); 105 addColor(QColor(255, 0, 0), 1, 0);
106 addColor(QColor(255, 128, 0), 1, 1); 106 addColor(QColor(255, 128, 0), 1, 1);