-rw-r--r-- | korganizer/koagenda.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 796d633..d9d1283 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -1815,54 +1815,54 @@ KOAgendaItem *KOAgenda::insertItem (Incidence *event,QDate qd,int X,int YTop,int | |||
1815 | agendaItem->resize(mGridSpacingX,iheight ); | 1815 | agendaItem->resize(mGridSpacingX,iheight ); |
1816 | agendaItem->setCellXY(X,YTop,YBottom); | 1816 | agendaItem->setCellXY(X,YTop,YBottom); |
1817 | agendaItem->setCellXWidth(X); | 1817 | agendaItem->setCellXWidth(X); |
1818 | 1818 | ||
1819 | //addChild(agendaItem,X*mGridSpacingX,YTop*mGridSpacingY); | 1819 | //addChild(agendaItem,X*mGridSpacingX,YTop*mGridSpacingY); |
1820 | mItems.append(agendaItem); | 1820 | mItems.append(agendaItem); |
1821 | 1821 | ||
1822 | placeSubCells(agendaItem); | 1822 | placeSubCells(agendaItem); |
1823 | 1823 | ||
1824 | //agendaItem->show(); | 1824 | //agendaItem->show(); |
1825 | 1825 | ||
1826 | 1826 | ||
1827 | return agendaItem; | 1827 | return agendaItem; |
1828 | } | 1828 | } |
1829 | 1829 | ||
1830 | 1830 | ||
1831 | /* | 1831 | /* |
1832 | Insert all-day KOAgendaItem into agenda. | 1832 | Insert all-day KOAgendaItem into agenda. |
1833 | */ | 1833 | */ |
1834 | KOAgendaItem *KOAgenda::insertAllDayItem (Incidence *event,QDate qd,int XBegin,int XEnd) | 1834 | KOAgendaItem *KOAgenda::insertAllDayItem (Incidence *event,QDate qd,int XBegin,int XEnd) |
1835 | { | 1835 | { |
1836 | if (!mAllDayMode) { | 1836 | if (!mAllDayMode) { |
1837 | return 0; | 1837 | return 0; |
1838 | } | 1838 | } |
1839 | 1839 | //qDebug("insertallday %s -- %d - %d ",qd.toString().latin1(), XBegin, XEnd ); | |
1840 | KOAgendaItem *agendaItem = getNewItem(event,qd,viewport()); | 1840 | KOAgendaItem *agendaItem = getNewItem(event,qd,viewport()); |
1841 | 1841 | ||
1842 | agendaItem->setCellXY(XBegin,0,0); | 1842 | agendaItem->setCellXY(XBegin,0,0); |
1843 | agendaItem->setCellXWidth(XEnd); | 1843 | agendaItem->setCellXWidth(XEnd); |
1844 | agendaItem->resizeMe(mGridSpacingX, mGridSpacingX * agendaItem->cellWidth(),mGridSpacingY); | 1844 | agendaItem->resizeMe(mGridSpacingX, mGridSpacingX * agendaItem->cellWidth(),mGridSpacingY, true ); |
1845 | 1845 | ||
1846 | //addChild(agendaItem,XBegin*mGridSpacingX,0); | 1846 | //addChild(agendaItem,XBegin*mGridSpacingX,0); |
1847 | mItems.append(agendaItem); | 1847 | mItems.append(agendaItem); |
1848 | 1848 | ||
1849 | placeSubCells(agendaItem); | 1849 | placeSubCells(agendaItem); |
1850 | 1850 | ||
1851 | //agendaItem->show(); | 1851 | //agendaItem->show(); |
1852 | 1852 | ||
1853 | return agendaItem; | 1853 | return agendaItem; |
1854 | } | 1854 | } |
1855 | 1855 | ||
1856 | 1856 | ||
1857 | void KOAgenda::insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd, | 1857 | void KOAgenda::insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd, |
1858 | int YTop,int YBottom) | 1858 | int YTop,int YBottom) |
1859 | { | 1859 | { |
1860 | if (mAllDayMode) { | 1860 | if (mAllDayMode) { |
1861 | ; | 1861 | ; |
1862 | return; | 1862 | return; |
1863 | } | 1863 | } |
1864 | 1864 | ||
1865 | int cellX,cellYTop,cellYBottom; | 1865 | int cellX,cellYTop,cellYBottom; |
1866 | QString newtext; | 1866 | QString newtext; |
1867 | int width = XEnd - XBegin + 1; | 1867 | int width = XEnd - XBegin + 1; |
1868 | int count = 0; | 1868 | int count = 0; |