summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-21 15:38:31 (UTC)
committer zautrix <zautrix>2005-01-21 15:38:31 (UTC)
commit4afdcfcac216b428ada79f4750cf7447e3175333 (patch) (unidiff)
tree8f70936ac23137c3f6fb00fce33edbfe3d821f59
parent234b9425bebd41b556277cdd94138fafecc32b45 (diff)
downloadkdepimpi-4afdcfcac216b428ada79f4750cf7447e3175333.zip
kdepimpi-4afdcfcac216b428ada79f4750cf7447e3175333.tar.gz
kdepimpi-4afdcfcac216b428ada79f4750cf7447e3175333.tar.bz2
some fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/SyncHowto.txt2
-rw-r--r--korganizer/kotodoviewitem.cpp6
-rw-r--r--microkde/kdeui/klistview.cpp14
-rw-r--r--version2
4 files changed, 16 insertions, 8 deletions
diff --git a/bin/kdepim/SyncHowto.txt b/bin/kdepim/SyncHowto.txt
index 64f6f14..b0473a1 100644
--- a/bin/kdepim/SyncHowto.txt
+++ b/bin/kdepim/SyncHowto.txt
@@ -81,17 +81,17 @@ b) Give your device a unique name.
81 already performed A->B sync. 81 already performed A->B sync.
82 That means: It is unimportant if you sync A->B or B->A, 82 That means: It is unimportant if you sync A->B or B->A,
83 the devices A and B will be synced properly. 83 the devices A and B will be synced properly.
84c) Create a new sync profile and give it a unique name. 84c) Create a new sync profile and give it a unique name.
85 (unique in the set of all sync profiles on this device). 85 (unique in the set of all sync profiles on this device).
86 If you want to sync with a device, where KO/Pi is already installed 86 If you want to sync with a device, where KO/Pi is already installed
87 and which has a given unique device name, use this device name as 87 and which has a given unique device name, use this device name as
88 your profile name ( refer to b) ). 88 your profile name ( refer to b) ).
89d) Coose the profile kind of your syncing method: 89d) Choose the profile kind of your syncing method:
90 (i) Local file or 90 (i) Local file or
91 (ii) Pi-Sync or 91 (ii) Pi-Sync or
92 (iii) Remote file or 92 (iii) Remote file or
93 (iiii) Mobile Phone. 93 (iiii) Mobile Phone.
94 Detailed explanation in 6) 94 Detailed explanation in 6)
95e) Choose the other profile options. 95e) Choose the other profile options.
96 Detailed explanation in 2) 96 Detailed explanation in 2)
97f) Close sync dialog with OK. 97f) Close sync dialog with OK.
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp
index 347d982..ead8628 100644
--- a/korganizer/kotodoviewitem.cpp
+++ b/korganizer/kotodoviewitem.cpp
@@ -189,19 +189,19 @@ void KOTodoViewItem::setMyPixmap()
189 p.begin( &pixi ); 189 p.begin( &pixi );
190 p. drawPixmap ( 0, pixSize, pPix); 190 p. drawPixmap ( 0, pixSize, pPix);
191 p.end(); 191 p.end();
192 pixSize += size; 192 pixSize += size;
193 } 193 }
194 // } 194 // }
195 if ( pixi.width() > 1 ) { 195 if ( pixi.width() > 1 ) {
196 setPixmap ( 0,pixi ) ; 196 setPixmap ( 0,pixi ) ;
197 } else {
198 setPixmap ( 0,QPixmap() ) ;
197 } 199 }
198
199
200} 200}
201void KOTodoViewItem::stateChange(bool state) 201void KOTodoViewItem::stateChange(bool state)
202{ 202{
203 // qDebug("KOTodoViewItem::stateChange "); 203 // qDebug("KOTodoViewItem::stateChange ");
204 // do not change setting on startup 204 // do not change setting on startup
205 if ( m_init ) return; 205 if ( m_init ) return;
206 206
207 kdDebug() << "State changed, modified " << state << endl; 207 kdDebug() << "State changed, modified " << state << endl;
@@ -244,18 +244,18 @@ void KOTodoViewItem::stateChange(bool state)
244 QListViewItem * myChild = firstChild(); 244 QListViewItem * myChild = firstChild();
245 KOTodoViewItem *item; 245 KOTodoViewItem *item;
246 while( myChild ) { 246 while( myChild ) {
247 item = static_cast<KOTodoViewItem*>(myChild); 247 item = static_cast<KOTodoViewItem*>(myChild);
248 item->stateChange(state); 248 item->stateChange(state);
249 myChild = myChild->nextSibling(); 249 myChild = myChild->nextSibling();
250 } 250 }
251 mTodoView->modified(true); 251 mTodoView->modified(true);
252 mTodoView->setTodoModified( mTodo );
253 setMyPixmap(); 252 setMyPixmap();
253 mTodoView->setTodoModified( mTodo );
254} 254}
255 255
256bool KOTodoViewItem::isAlternate() 256bool KOTodoViewItem::isAlternate()
257{ 257{
258#ifndef KORG_NOLVALTERNATION 258#ifndef KORG_NOLVALTERNATION
259 KOTodoListView *lv = static_cast<KOTodoListView *>(listView()); 259 KOTodoListView *lv = static_cast<KOTodoListView *>(listView());
260 if (lv && lv->alternateBackground().isValid()) 260 if (lv && lv->alternateBackground().isValid())
261 { 261 {
diff --git a/microkde/kdeui/klistview.cpp b/microkde/kdeui/klistview.cpp
index 6859d36..154cd02 100644
--- a/microkde/kdeui/klistview.cpp
+++ b/microkde/kdeui/klistview.cpp
@@ -1904,19 +1904,27 @@ void KListView::emitContextMenu (KListView*, QListViewItem* i)
1904 else 1904 else
1905 p = mapToGlobal(rect().center()); 1905 p = mapToGlobal(rect().center());
1906 1906
1907 emit contextMenu (this, i, p); 1907 emit contextMenu (this, i, p);
1908} 1908}
1909 1909
1910void KListView::emitContextMenu (QListViewItem* i, const QPoint& p, int col) 1910void KListView::emitContextMenu (QListViewItem* i, const QPoint& p, int col)
1911{ 1911{
1912 // qDebug("KListView::emitContextMenu col"); 1912 QListViewItem* item = i;
1913 emit contextRequest( i, p, col ); 1913 int c = col;
1914 emit contextMenu (this, i, p); 1914 // do not trust the values for QListViewItem* i and int col;
1915 // qDebug("KListView::emitContextMenu col");
1916 if ( col == -1 ) {
1917 QPoint pp = viewport()->mapFromGlobal(p);
1918 item = itemAt( pp);
1919 c = header()->sectionAt(pp.x() );
1920 }
1921 emit contextRequest( item, p, c );
1922 emit contextMenu (this, item, p);
1915} 1923}
1916 1924
1917void KListView::setAcceptDrops (bool val) 1925void KListView::setAcceptDrops (bool val)
1918{ 1926{
1919 QListView::setAcceptDrops (val); 1927 QListView::setAcceptDrops (val);
1920 viewport()->setAcceptDrops (val); 1928 viewport()->setAcceptDrops (val);
1921} 1929}
1922 1930
diff --git a/version b/version
index dedf950..02b0fb1 100644
--- a/version
+++ b/version
@@ -1 +1 @@
version = "1.9.19"; version = "1.9.20";