author | zautrix <zautrix> | 2005-04-01 18:10:09 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-01 18:10:09 (UTC) |
commit | edc032c21ae3788d02a632ea8066e4ac5a4feedb (patch) (unidiff) | |
tree | 8e59c8dcf1cc3021694025627d36e152f7adc389 /korganizer/koeditordetails.cpp | |
parent | 5d88f92b76a760f100384ea5fa6ed143088d19bb (diff) | |
download | kdepimpi-edc032c21ae3788d02a632ea8066e4ac5a4feedb.zip kdepimpi-edc032c21ae3788d02a632ea8066e4ac5a4feedb.tar.gz kdepimpi-edc032c21ae3788d02a632ea8066e4ac5a4feedb.tar.bz2 |
fixes
Diffstat (limited to 'korganizer/koeditordetails.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeditordetails.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 2fd13bd..802261c 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.cpp | |||
@@ -66,50 +66,51 @@ void CustomListViewItem<class Attendee *>::updateItem() | |||
66 | setText(2,mData->roleStr()); | 66 | setText(2,mData->roleStr()); |
67 | setText(3,mData->statusStr()); | 67 | setText(3,mData->statusStr()); |
68 | if (mData->RSVP() && !mData->email().isEmpty()) | 68 | if (mData->RSVP() && !mData->email().isEmpty()) |
69 | setPixmap(4,SmallIcon("mailappt")); | 69 | setPixmap(4,SmallIcon("mailappt")); |
70 | else | 70 | else |
71 | setPixmap(4,SmallIcon("nomailappt")); | 71 | setPixmap(4,SmallIcon("nomailappt")); |
72 | } | 72 | } |
73 | 73 | ||
74 | 74 | ||
75 | KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) | 75 | KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) |
76 | : QWidget( parent, name), mDisableItemUpdate( false ) | 76 | : QWidget( parent, name), mDisableItemUpdate( false ) |
77 | { | 77 | { |
78 | QGridLayout *topLayout = new QGridLayout(this); | 78 | QGridLayout *topLayout = new QGridLayout(this); |
79 | topLayout->setSpacing(spacing); | 79 | topLayout->setSpacing(spacing); |
80 | 80 | ||
81 | QString organizer = KOPrefs::instance()->email(); | 81 | QString organizer = KOPrefs::instance()->email(); |
82 | mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); | 82 | mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); |
83 | 83 | ||
84 | mListView = new KListView(this,"mListView"); | 84 | mListView = new KListView(this,"mListView"); |
85 | mListView->addColumn(i18n("Name"),180); | 85 | mListView->addColumn(i18n("Name"),180); |
86 | mListView->addColumn(i18n("Email"),180); | 86 | mListView->addColumn(i18n("Email"),180); |
87 | mListView->addColumn(i18n("Role"),60); | 87 | mListView->addColumn(i18n("Role"),60); |
88 | mListView->addColumn(i18n("Status"),100); | 88 | mListView->addColumn(i18n("Status"),100); |
89 | mListView->addColumn(i18n("RSVP"),35); | 89 | mListView->addColumn(i18n("RSVP"),35); |
90 | if ( KOPrefs::instance()->mCompactDialogs ) { | 90 | if ( QApplication::desktop()->width() <= 320 ) { |
91 | //mListView->setFixedHeight(78); | 91 | //mListView->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding) ); |
92 | mListView->setFixedHeight(80); | ||
92 | } | 93 | } |
93 | mListView->setAllColumnsShowFocus (true ); | 94 | mListView->setAllColumnsShowFocus (true ); |
94 | //mListView->setSingleClick( true ); | 95 | //mListView->setSingleClick( true ); |
95 | connect(mListView,SIGNAL(selectionChanged(QListViewItem *)), | 96 | connect(mListView,SIGNAL(selectionChanged(QListViewItem *)), |
96 | SLOT(updateAttendeeInput())); | 97 | SLOT(updateAttendeeInput())); |
97 | 98 | ||
98 | connect(mListView,SIGNAL(executed(QListViewItem * ,const QPoint&, int )), | 99 | connect(mListView,SIGNAL(executed(QListViewItem * ,const QPoint&, int )), |
99 | SLOT(itemClicked(QListViewItem * ,const QPoint& , int ))); | 100 | SLOT(itemClicked(QListViewItem * ,const QPoint& , int ))); |
100 | 101 | ||
101 | mRsvpButton = new QCheckBox(this); | 102 | mRsvpButton = new QCheckBox(this); |
102 | mRsvpButton->setText(i18n("Request response")); | 103 | mRsvpButton->setText(i18n("Request response")); |
103 | mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); | 104 | mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); |
104 | QLabel *attendeeLabel = new QLabel(this); | 105 | QLabel *attendeeLabel = new QLabel(this); |
105 | attendeeLabel->setText(i18n("Name:")); | 106 | attendeeLabel->setText(i18n("Name:")); |
106 | attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); | 107 | attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); |
107 | mNameEdit = new QLineEdit(this); | 108 | mNameEdit = new QLineEdit(this); |
108 | connect(mNameEdit,SIGNAL(textChanged(const QString &)), | 109 | connect(mNameEdit,SIGNAL(textChanged(const QString &)), |
109 | SLOT(updateAttendeeItem())); | 110 | SLOT(updateAttendeeItem())); |
110 | 111 | ||
111 | mUidEdit = new QLineEdit(0); | 112 | mUidEdit = new QLineEdit(0); |
112 | mUidEdit->setText(""); | 113 | mUidEdit->setText(""); |
113 | 114 | ||
114 | QLabel *emailLabel = new QLabel(this); | 115 | QLabel *emailLabel = new QLabel(this); |
115 | emailLabel->setText(i18n("Email:")); | 116 | emailLabel->setText(i18n("Email:")); |