summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp31
1 files changed, 30 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index f945383..0367bea 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -116,37 +116,66 @@ class KOex2phonePrefs : public QDialog
lay->addWidget( cancel );
connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) );
connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) );
resize( 220, 240 );
qApp->processEvents();
int dw = QApplication::desktop()->width();
int dh = QApplication::desktop()->height();
move( (dw-width())/2, (dh - height() )/2 );
}
public:
QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel;
QCheckBox* mWriteBackFuture;
QSpinBox* mWriteBackFutureWeeks;
};
+QPixmap* sgListViewCompletedPix[6];
+
+
int globalFlagBlockStartup;
MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
QMainWindow( parent, name )
{
-
+ sgListViewCompletedPix[5] = &listviewPix;
+ sgListViewCompletedPix[0] = &listviewPix0;
+ sgListViewCompletedPix[1] = &listviewPix20;
+ sgListViewCompletedPix[2] = &listviewPix40;
+ sgListViewCompletedPix[3] = &listviewPix60;
+ sgListViewCompletedPix[4] = &listviewPix80;
+ if ( sgListViewCompletedPix[5]->height() < 5 ) {
+ int size = 12;
+ sgListViewCompletedPix[5]->resize( 11, 11 );
+ sgListViewCompletedPix[5]->fill( Qt::white );
+ QPainter p ( sgListViewCompletedPix[5] );
+ p.drawRect( 0,0,11,11);
+ int half = size/2;
+ int heihei = size/2;
+ int x = 1;
+ p.drawLine ( 2, 5, 4 , 7 ) ;
+ p.drawLine ( 4 , 7 , 8, 3) ;
+ int iii = 0;
+ for ( iii = 0; iii < 5; ++iii ) {
+ sgListViewCompletedPix[iii]->resize( 11, 11 );
+ sgListViewCompletedPix[iii]->fill( Qt::white );
+ QPainter p ( sgListViewCompletedPix[iii] );
+ p.drawRect( 0,0,11,11);
+ if ( iii )
+ p.fillRect( 1,1,iii*2,9,Qt::gray );
+ }
+ }
mClosed = false;
//QString confFile = KStandardDirs::appDir() + "config/korganizerrc";
QString confFile = locateLocal("config","korganizerrc");
QFileInfo finf ( confFile );
bool showWarning = !finf.exists();
setIcon(SmallIcon( "ko24" ) );
mBlockAtStartup = true;
mFlagKeyPressed = false;
setCaption("KO/Pi");
KOPrefs *p = KOPrefs::instance();
KPimGlobalPrefs::instance()->setGlobalConfig();
p->mCurrentDisplayedView = 0;
if ( p->mHourSize > 22 )
p->mHourSize = 22;
QMainWindow::ToolBarDock tbd;
if ( p->mToolBarHor ) {