diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2015-04-14 12:50:55 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2015-04-15 10:53:25 +0200 |
commit | 9d3babea67fb5463e5b5bbd69a31131516476b96 (patch) | |
tree | 6725ffa4aa08d6a4df6af26068c113f00be46975 /src/gui/historyform.ui.h | |
parent | 10478170cb97e558899dcbdd3a6fef6a0e79a124 (diff) | |
download | twinkle-9d3babea67fb5463e5b5bbd69a31131516476b96.tar twinkle-9d3babea67fb5463e5b5bbd69a31131516476b96.tar.gz twinkle-9d3babea67fb5463e5b5bbd69a31131516476b96.tar.lz twinkle-9d3babea67fb5463e5b5bbd69a31131516476b96.tar.xz twinkle-9d3babea67fb5463e5b5bbd69a31131516476b96.zip |
Qt4 port step 2: apply qt3toqt4
Diffstat (limited to 'src/gui/historyform.ui.h')
-rw-r--r-- | src/gui/historyform.ui.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/gui/historyform.ui.h b/src/gui/historyform.ui.h index 6c47540..08af8c7 100644 --- a/src/gui/historyform.ui.h +++ b/src/gui/historyform.ui.h @@ -1,3 +1,7 @@ +//Added by qt3to4: +#include <QCloseEvent> +#include <QPixmap> +#include <Q3PopupMenu> /**************************************************************************** ** ui.h extension file, included from the uic-generated form implementation. ** @@ -31,9 +35,9 @@ void HistoryForm::init() { historyListView->setSorting(HISTCOL_TIMESTAMP, false); - historyListView->setColumnWidthMode(HISTCOL_FROMTO, QListView::Manual); + historyListView->setColumnWidthMode(HISTCOL_FROMTO, Q3ListView::Manual); historyListView->setColumnWidth(HISTCOL_FROMTO, 200); - historyListView->setColumnWidthMode(HISTCOL_SUBJECT, QListView::Manual); + historyListView->setColumnWidthMode(HISTCOL_SUBJECT, Q3ListView::Manual); historyListView->setColumnWidth(HISTCOL_SUBJECT, 200); inCheckBox->setChecked(true); @@ -44,9 +48,9 @@ void HistoryForm::init() timeLastViewed = phone->get_startup_time(); - QIconSet inviteIcon(QPixmap::fromMimeSource("invite.png")); - QIconSet deleteIcon(QPixmap::fromMimeSource("editdelete.png")); - histPopupMenu = new QPopupMenu(this); + QIcon inviteIcon(QPixmap::fromMimeSource("invite.png")); + QIcon deleteIcon(QPixmap::fromMimeSource("editdelete.png")); + histPopupMenu = new Q3PopupMenu(this); MEMMAN_NEW(histPopupMenu); itemCall = histPopupMenu->insertItem(inviteIcon, tr("Call..."), this, SLOT(call())); @@ -126,7 +130,7 @@ void HistoryForm::loadHistory() totalDurationValueTextLabel->setText(durationText); // Make the first entry the selected entry. - QListViewItem *first = historyListView->firstChild(); + Q3ListViewItem *first = historyListView->firstChild(); if (first) { historyListView->setSelected(first, true); showCallDetails(first); @@ -173,7 +177,7 @@ void HistoryForm::closeEvent( QCloseEvent *e ) QDialog::closeEvent(e); } -void HistoryForm::showCallDetails(QListViewItem *item) +void HistoryForm::showCallDetails(Q3ListViewItem *item) { QString s; @@ -272,7 +276,7 @@ void HistoryForm::showCallDetails(QListViewItem *item) cdrTextEdit->setText(s); } -void HistoryForm::popupMenu(QListViewItem *item, const QPoint &pos) +void HistoryForm::popupMenu(Q3ListViewItem *item, const QPoint &pos) { if (!item) return; @@ -289,7 +293,7 @@ void HistoryForm::popupMenu(QListViewItem *item, const QPoint &pos) histPopupMenu->popup(pos); } -void HistoryForm::call(QListViewItem *item) +void HistoryForm::call(Q3ListViewItem *item) { if (!item) return; @@ -339,13 +343,13 @@ void HistoryForm::call(QListViewItem *item) void HistoryForm::call(void) { - QListViewItem *item = historyListView->currentItem(); + Q3ListViewItem *item = historyListView->currentItem(); if (item) call(item); } void HistoryForm::deleteEntry(void) { - QListViewItem *item = historyListView->currentItem(); + Q3ListViewItem *item = historyListView->currentItem(); HistoryListViewItem *histItem = dynamic_cast<HistoryListViewItem *>(item); if (!histItem) return; |