diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 00:08:26 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 00:08:26 +0200 |
commit | 7358ae85cc65c1ff2ac6b773a9e90cc416e359d0 (patch) | |
tree | 5adbade25539ef485bf093c9b88eef0403f3f0f0 | |
parent | Merge commit 'refs/merge-requests/2267' of git://gitorious.org/rekonq/mainlin... (diff) | |
parent | Tiny improvements for the appearance of the RSS widget (diff) | |
download | rekonq-7358ae85cc65c1ff2ac6b773a9e90cc416e359d0.tar.xz |
Merge commit 'refs/merge-requests/2268' of git://gitorious.org/rekonq/mainline into m2268
-rw-r--r-- | src/urlbar/rsswidget.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/urlbar/rsswidget.cpp b/src/urlbar/rsswidget.cpp index 395d7bab..35095c07 100644 --- a/src/urlbar/rsswidget.cpp +++ b/src/urlbar/rsswidget.cpp @@ -56,26 +56,35 @@ RSSWidget::RSSWidget(const QMap< KUrl, QString > &map, QWidget *parent) , m_map(map) { setAttribute(Qt::WA_DeleteOnClose); - setFixedWidth(250); + + setMinimumWidth(200); setFrameStyle(Panel); QFormLayout *layout = new QFormLayout(this); setLayout(layout); + QLabel *title = new QLabel(this); + title->setText(i18n("<h4>Subscribe to RSS Feeds</h4>")); + layout->addRow(title); + + // Agregators QLabel *agregator = new QLabel(this); agregator->setText(i18n("Aggregator:")); m_agregators = new KComboBox(this); - m_agregators->addItem(KIcon("application-rss+xml"), QString("Akregator")); + m_agregators->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); + + m_agregators->addItem(KIcon("akregator"), QString("Akregator")); m_agregators->addItem(Application::icon(KUrl("http://google.com/reader")), i18n("Google Reader")); layout->addRow(agregator, m_agregators); - + // Feeds List QLabel *feed = new QLabel(this); feed->setText(i18n("Feed:")); m_feeds = new KComboBox(this); + m_feeds->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); foreach(const QString &title, m_map) { @@ -84,13 +93,16 @@ RSSWidget::RSSWidget(const QMap< KUrl, QString > &map, QWidget *parent) layout->addRow(feed, m_feeds); - - QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this); - buttonBox->button(QDialogButtonBox::Ok)->setText(i18n("Add Feed")); + // Buttons + QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, Qt::Horizontal, this); + + QPushButton *addFeed = new QPushButton(KIcon("list-add"), i18n("Add Feed"), buttonBox); + buttonBox->addButton(addFeed, QDialogButtonBox::AcceptRole); + connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); - layout->addWidget(buttonBox); + layout->addRow(buttonBox); } |