Added TT-RSS icons.
This commit is contained in:
parent
b9e2f19bee
commit
01e595d7cd
BIN
resources/graphics/icons/mini-kfaenza/application-ttrss.png
Executable file
BIN
resources/graphics/icons/mini-kfaenza/application-ttrss.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
BIN
resources/graphics/icons/numix/application-ttrss.png
Executable file
BIN
resources/graphics/icons/numix/application-ttrss.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
@ -38,8 +38,28 @@ FormAddAccount::FormAddAccount(const QList<ServiceEntryPoint*> &entry_points, Fe
|
|||||||
#if defined(Q_OS_OS2)
|
#if defined(Q_OS_OS2)
|
||||||
MessageBox::iconify(m_ui->m_buttonBox);
|
MessageBox::iconify(m_ui->m_buttonBox);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
connect(m_ui->m_listEntryPoints, SIGNAL(itemSelectionChanged()), this, SLOT(displayActiveEntryPointDetails()));
|
||||||
|
loadEntryPoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
FormAddAccount::~FormAddAccount() {
|
FormAddAccount::~FormAddAccount() {
|
||||||
delete m_ui;
|
delete m_ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FormAddAccount::displayActiveEntryPointDetails() {
|
||||||
|
QList<QListWidgetItem*> selected_items = m_ui->m_listEntryPoints->selectedItems();
|
||||||
|
|
||||||
|
if (!selected_items.isEmpty()) {
|
||||||
|
ServiceEntryPoint *point = static_cast<ServiceEntryPoint*>(selected_items.at(0)->data(Qt::UserRole).value<void*>());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void FormAddAccount::loadEntryPoints() {
|
||||||
|
foreach (ServiceEntryPoint *entry_point, m_entryPoints) {
|
||||||
|
QListWidgetItem *item = new QListWidgetItem(entry_point->icon(), entry_point->name(), m_ui->m_listEntryPoints);
|
||||||
|
|
||||||
|
item->setData(Qt::UserRole, QVariant::fromValue((void*) entry_point));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -37,7 +37,12 @@ class FormAddAccount : public QDialog {
|
|||||||
explicit FormAddAccount(const QList<ServiceEntryPoint*> &entry_points, FeedsModel *model, QWidget *parent = 0);
|
explicit FormAddAccount(const QList<ServiceEntryPoint*> &entry_points, FeedsModel *model, QWidget *parent = 0);
|
||||||
virtual ~FormAddAccount();
|
virtual ~FormAddAccount();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void displayActiveEntryPointDetails();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void loadEntryPoints();
|
||||||
|
|
||||||
Ui::FormAddAccount *m_ui;
|
Ui::FormAddAccount *m_ui;
|
||||||
FeedsModel *m_model;
|
FeedsModel *m_model;
|
||||||
QList<ServiceEntryPoint*> m_entryPoints;
|
QList<ServiceEntryPoint*> m_entryPoints;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user