author | zautrix <zautrix> | 2005-06-11 08:12:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-11 08:12:33 (UTC) |
commit | ad60ed0d2434b2e67f469962e0aab3b3171f7d56 (patch) (unidiff) | |
tree | 5f795cf81afab90e91599a84e11378dd9b4aa864 /korganizer | |
parent | 53c616e1fe8855211377aab41b3359df5fea456c (diff) | |
download | kdepimpi-ad60ed0d2434b2e67f469962e0aab3b3171f7d56.zip kdepimpi-ad60ed0d2434b2e67f469962e0aab3b3171f7d56.tar.gz kdepimpi-ad60ed0d2434b2e67f469962e0aab3b3171f7d56.tar.bz2 |
icons
-rw-r--r-- | korganizer/kofilterview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 64675ad..e379abc 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -82,80 +82,80 @@ CalFilter *KOFilterView::selectedFilter() | |||
82 | void KOFilterView::setSelectedFilter(QString filterName) | 82 | void KOFilterView::setSelectedFilter(QString filterName) |
83 | { | 83 | { |
84 | int filter_num = mSelectionCombo->count(); | 84 | int filter_num = mSelectionCombo->count(); |
85 | int i; | 85 | int i; |
86 | for (i=0;i<filter_num;i++) { | 86 | for (i=0;i<filter_num;i++) { |
87 | if (mSelectionCombo->text(i)==filterName) | 87 | if (mSelectionCombo->text(i)==filterName) |
88 | mSelectionCombo->setCurrentItem(i); | 88 | mSelectionCombo->setCurrentItem(i); |
89 | } | 89 | } |
90 | emit filterChanged(); | 90 | emit filterChanged(); |
91 | } | 91 | } |
92 | void KOFilterView::setSelectedFilter( int fil ) | 92 | void KOFilterView::setSelectedFilter( int fil ) |
93 | { | 93 | { |
94 | if ( fil >= mSelectionCombo->count() ) | 94 | if ( fil >= mSelectionCombo->count() ) |
95 | return; | 95 | return; |
96 | mSelectionCombo->setCurrentItem( fil ); | 96 | mSelectionCombo->setCurrentItem( fil ); |
97 | emit filterChanged(); | 97 | emit filterChanged(); |
98 | } | 98 | } |
99 | 99 | ||
100 | 100 | ||
101 | 101 | ||
102 | KOCalEditView::KOCalEditView(QWidget* parent, | 102 | KOCalEditView::KOCalEditView(QWidget* parent, |
103 | const char* name ) | 103 | const char* name ) |
104 | : QWidget(parent,name) | 104 | : QWidget(parent,name) |
105 | { | 105 | { |
106 | /* | 106 | /* |
107 | connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged())); | 107 | connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged())); |
108 | connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged())); | 108 | connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged())); |
109 | connect(mEditButton,SIGNAL(clicked()),SIGNAL(editCalEdits())); | 109 | connect(mEditButton,SIGNAL(clicked()),SIGNAL(editCalEdits())); |
110 | */ | 110 | */ |
111 | QGridLayout* mainLayout = new QGridLayout ( this , 2, 6 ); | 111 | QGridLayout* mainLayout = new QGridLayout ( this , 2, 6 ); |
112 | QPushButton * addBut = new QPushButton ( this ); | 112 | QPushButton * addBut = new QPushButton ( this ); |
113 | mainLayout->addWidget( addBut,0,0 ); | 113 | mainLayout->addWidget( addBut,0,0 ); |
114 | addBut->setPixmap ( SmallIcon("redcross16")); | 114 | addBut->setPixmap ( SmallIcon("plus")); |
115 | connect(addBut,SIGNAL(clicked()),SLOT(addCal())); | 115 | connect(addBut,SIGNAL(clicked()),SLOT(addCal())); |
116 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 116 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
117 | 117 | ||
118 | addBut = new QPushButton ( this ); | 118 | addBut = new QPushButton ( this ); |
119 | mainLayout->addWidget( addBut,0,1 ); | 119 | mainLayout->addWidget( addBut,0,1 ); |
120 | addBut->setPixmap ( SmallIcon("redcross16")); | 120 | addBut->setPixmap ( SmallIcon("eye")); |
121 | connect(addBut,SIGNAL(clicked()),SLOT(enableAll())); | 121 | connect(addBut,SIGNAL(clicked()),SLOT(enableAll())); |
122 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 122 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
123 | 123 | ||
124 | QLabel* lab = new QLabel ( " "+i18n("Calendar")+" ", this ); | 124 | QLabel* lab = new QLabel ( " "+i18n("Calendar")+" ", this ); |
125 | mainLayout->addWidget( lab,0,2 ); | 125 | mainLayout->addWidget( lab,0,2 ); |
126 | 126 | ||
127 | addBut = new QPushButton ( this ); | 127 | addBut = new QPushButton ( this ); |
128 | mainLayout->addWidget( addBut,0,3 ); | 128 | mainLayout->addWidget( addBut,0,3 ); |
129 | addBut->setPixmap ( SmallIcon("redcross16")); | 129 | addBut->setPixmap ( SmallIcon("bell")); |
130 | connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm())); | 130 | connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm())); |
131 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 131 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
132 | 132 | ||
133 | addBut = new QPushButton ( this ); | 133 | addBut = new QPushButton ( this ); |
134 | mainLayout->addWidget( addBut,0,4 ); | 134 | mainLayout->addWidget( addBut,0,4 ); |
135 | addBut->setPixmap ( SmallIcon("redcross16")); | 135 | addBut->setPixmap ( SmallIcon("redcross16")); |
136 | connect(addBut,SIGNAL(clicked()),SLOT(disableRO())); | 136 | connect(addBut,SIGNAL(clicked()),SLOT(disableRO())); |
137 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 137 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
138 | 138 | ||
139 | addBut = new QPushButton ( this ); | 139 | addBut = new QPushButton ( this ); |
140 | mainLayout->addWidget( addBut,0,5 ); | 140 | mainLayout->addWidget( addBut,0,5 ); |
141 | addBut->setPixmap ( SmallIcon("trash")); | 141 | addBut->setPixmap ( SmallIcon("trash")); |
142 | connect(addBut,SIGNAL(clicked()),SLOT(deleteAll())); | 142 | connect(addBut,SIGNAL(clicked()),SLOT(deleteAll())); |
143 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 143 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
144 | 144 | ||
145 | 145 | ||
146 | 146 | ||
147 | } | 147 | } |
148 | 148 | ||
149 | KOCalEditView::~KOCalEditView() | 149 | KOCalEditView::~KOCalEditView() |
150 | { | 150 | { |
151 | // no need to delete child widgets, Qt does it all for us | 151 | // no need to delete child widgets, Qt does it all for us |
152 | } | 152 | } |
153 | void KOCalEditView::readConfig( KConfig *) | 153 | void KOCalEditView::readConfig( KConfig *) |
154 | { | 154 | { |
155 | 155 | ||
156 | } | 156 | } |
157 | void KOCalEditView::addCal() | 157 | void KOCalEditView::addCal() |
158 | { | 158 | { |
159 | qDebug("addcal "); | 159 | qDebug("addcal "); |
160 | } | 160 | } |
161 | void KOCalEditView::enableAll() | 161 | void KOCalEditView::enableAll() |