summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-05-19 14:28:35 +0200
committermatgic78 <matgic78@gmail.com>2010-05-19 14:28:35 +0200
commit2914530457e441918372226037f8a062e195bf9c (patch)
tree9ef6b2bf62cdf452c6a31c697c1db7e7c32d38e0 /src
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-2914530457e441918372226037f8a062e195bf9c.tar.xz
Tiny improvements for the appearance of the RSS widget
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/rsswidget.cpp26
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);
}