summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -39,65 +39,65 @@
#include <qpe/qpemenubar.h>
#include <qpe/qpemessagebox.h>
#include <qpe/resource.h>
//#include <qpe/task.h>
#include <qpe/qpetoolbar.h>
#include <qaction.h>
#include <qarray.h>
#include <qdatastream.h>
#include <qdatetime.h>
#include <qfile.h>
#include <qmessagebox.h>
#include <qpopupmenu.h>
#include <qwidgetstack.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
static QString todolistXMLFilename()
{
return Global::applicationFileName("todolist","todolist.xml");
}
static QString categoriesXMLFilename()
{
return Global::applicationFileName("todolist","categories.xml");
}
-TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
+TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) :
QMainWindow( parent, name, f ), syncing(FALSE)
{
// QTime t;
// t.start();
mView = 0l;
mStack = new QWidgetStack(this, "main stack");
setCaption( tr("Todo") );
QString str;
table = new TodoTable( this );
table->setColumnWidth( 2, 10 );
table->setPaintingEnabled( FALSE );
table->setUpdatesEnabled( FALSE );
table->viewport()->setUpdatesEnabled( FALSE );
{
str = todolistXMLFilename();
if ( str.isNull() )
QMessageBox::critical( this,
tr("Out of Space"),
tr("Unable to create startup files\n"
"Free up some space\n"
"before you enter any data") );
else
table->load( str );
}
// repeat for categories...
str = categoriesXMLFilename();
if ( str.isNull() )
QMessageBox::critical( this,
tr( "Out of Space" ),
tr( "Unable to create startup files\n"
diff --git a/libopie/colorpopupmenu.cpp b/libopie/colorpopupmenu.cpp
index 9b50a8b..17e2c0a 100644
--- a/libopie/colorpopupmenu.cpp
+++ b/libopie/colorpopupmenu.cpp
@@ -58,65 +58,65 @@ void ColorPanelButton::enterEvent( QEvent* e )
setFrameStyle( Panel | Sunken );
}
}
void ColorPanelButton::leaveEvent( QEvent* e )
{
Q_UNUSED( e )
if ( !m_active ) {
setFrameStyle( NoFrame );
}
}
void ColorPanelButton::paintEvent( QPaintEvent* e )
{
QFrame::paintEvent( e );
QPainter painter;
painter.begin( this );
painter.fillRect( 2, 2, 12, 12, m_color );
painter.setPen( Qt::black );
painter.drawRect( 2, 2, 12, 12 );
painter.end();
}
void ColorPanelButton::mouseReleaseEvent( QMouseEvent* e )
{
Q_UNUSED( e )
emit selected( m_color );
}
-ColorPopupMenu::ColorPopupMenu( const QColor& color, QWidget* parent = 0, const char* name = 0 )
+ColorPopupMenu::ColorPopupMenu( const QColor& color, QWidget* parent, const char* name )
: QPopupMenu( parent, name )
{
m_color = color;
colorPanel = new QWidget( this );
colorLayout = new QGridLayout(colorPanel, 5, 6);
addColor(QColor(255, 255, 255), 0, 1);
addColor(QColor(192, 192, 192), 0, 2);
addColor(QColor(128, 128, 128), 0, 3);
addColor(QColor(64, 64, 64), 0, 4);
addColor(QColor(0, 0, 0), 0, 5);
addColor(QColor(255, 0, 0), 1, 0);
addColor(QColor(255, 128, 0), 1, 1);
addColor(QColor(255, 255, 0), 1, 2);
addColor(QColor(128, 255, 0), 1, 3);
addColor(QColor(0, 255, 0), 1, 4);
addColor(QColor(0, 255, 128), 1, 5);
addColor(QColor(128, 0, 0), 2, 0);
addColor(QColor(128, 64, 0), 2, 1);
addColor(QColor(128, 128, 0), 2, 2);
addColor(QColor(64, 128, 0), 2, 3);
addColor(QColor(0, 128, 0), 2, 4);
addColor(QColor(0, 128, 64), 2, 5);
addColor(QColor(0, 255, 255), 3, 0);
addColor(QColor(0, 128, 255), 3, 1);
addColor(QColor(0, 0, 255), 3, 2);
addColor(QColor(128, 0, 255), 3, 3);