RSSManager::RSSManager(BrowserWindow* window, QWidget* parent) : QWidget(parent) , ui(new Ui::RSSManager) , m_window(window) { ui->setupUi(this); #ifdef Q_OS_MAC ui->tabWidget->setDocumentMode(false); #endif ui->tabWidget->setElideMode(Qt::ElideRight); m_networkManager = mApp->networkManager(); m_reloadButton = new QToolButton(this); m_reloadButton->setAutoRaise(true); m_reloadButton->setToolTip(tr("Reload")); m_reloadButton->setIcon(QIcon::fromTheme(QSL("view-refresh"))); ui->tabWidget->setCornerWidget(m_reloadButton); connect(m_reloadButton, SIGNAL(clicked()), this, SLOT(reloadFeeds())); connect(ui->add, SIGNAL(clicked()), this, SLOT(addFeed())); connect(ui->deletebutton, SIGNAL(clicked()), this, SLOT(deleteFeed())); connect(ui->edit, SIGNAL(clicked()), this, SLOT(editFeed())); }
RSSManager::RSSManager(QupZilla* mainClass, QWidget* parent) : QWidget(parent) , ui(new Ui::RSSManager) , p_QupZilla(mainClass) { ui->setupUi(this); ui->tabWidget->setElideMode(Qt::ElideRight); m_networkManager = mApp->networkManager(); m_reloadButton = new QToolButton(this); m_reloadButton->setAutoRaise(true); m_reloadButton->setToolTip(tr("Reload")); m_reloadButton->setIcon(IconProvider::standardIcon(QStyle::SP_BrowserReload)); ui->tabWidget->setCornerWidget(m_reloadButton); connect(m_reloadButton, SIGNAL(clicked()), this, SLOT(reloadFeeds())); connect(ui->add, SIGNAL(clicked()), this, SLOT(addFeed())); connect(ui->deletebutton, SIGNAL(clicked()), this, SLOT(deleteFeed())); connect(ui->edit, SIGNAL(clicked()), this, SLOT(editFeed())); connect(ui->optimizeDb, SIGNAL(clicked(QPoint)), this, SLOT(optimizeDb())); }