summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-08 14:48:55 (UTC)
committer zautrix <zautrix>2005-02-08 14:48:55 (UTC)
commit584ed7893497b2adad5ba6c3e914d90b76973b92 (patch) (side-by-side diff)
treea25b2c10338c32dc0a6bbf11e6bebeb059ec7bd0
parent41111b332c2a5f1b2ec152df309b9199f5e9c921 (diff)
downloadkdepimpi-584ed7893497b2adad5ba6c3e914d90b76973b92.zip
kdepimpi-584ed7893497b2adad5ba6c3e914d90b76973b92.tar.gz
kdepimpi-584ed7893497b2adad5ba6c3e914d90b76973b92.tar.bz2
fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 61c39f5..856f7db 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -2029,38 +2029,38 @@ void MainWindow::printCal()
void MainWindow::weekAction()
{
int month;
KPopupFrame* popup = new KPopupFrame(this);
KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(10, popup);
// -----
picker->resize(picker->sizeHint());
popup->setMainWidget(picker);
picker->setFocus();
connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int)));
int x = 0;
int y = iconToolBar->height();
int dX = 0;
int dY = 0;
if ( iconToolBar->orientation () == Qt:: Horizontal ) {
if ( iconToolBar->y() > height()/2 ) {
- dY = iconToolBar->height()+picker->sizeHint().height();
+ dY = picker->sizeHint().height()+8;
y = 0;
}
} else {
if ( iconToolBar->x() > width()/2 ) { // right side
x=0;
- dX= iconToolBar->width()+picker->sizeHint().width();
+ dX= picker->sizeHint().width()+8;
y = 0;
} else {
x= iconToolBar->width();
y = 0;
}
}
- qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() );
+ //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() );
if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))))
{
month = picker->getResult();
emit selectWeek ( month );
//qDebug("weekSelected %d ", month);
}
delete popup;
}