Version bumped.
This commit is contained in:
parent
ca2d4117fb
commit
d5ccfd8669
@ -65,8 +65,8 @@ project(rssguard)
|
|||||||
|
|
||||||
set(APP_NAME "RSS Guard")
|
set(APP_NAME "RSS Guard")
|
||||||
set(APP_LOW_NAME "rssguard")
|
set(APP_LOW_NAME "rssguard")
|
||||||
set(APP_VERSION "2.5.3")
|
set(APP_VERSION "2.6.0")
|
||||||
set(FILE_VERSION "2,5,3,0")
|
set(FILE_VERSION "2,6,0,0")
|
||||||
set(APP_AUTHOR "Martin Rotter")
|
set(APP_AUTHOR "Martin Rotter")
|
||||||
set(APP_URL "http://bitbucket.org/skunkos/rssguard")
|
set(APP_URL "http://bitbucket.org/skunkos/rssguard")
|
||||||
set(APP_URL_ISSUES "http://bitbucket.org/skunkos/rssguard/issues")
|
set(APP_URL_ISSUES "http://bitbucket.org/skunkos/rssguard/issues")
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center><h2>2.5.3</h2></center>
|
<center><h2>2.6.0</h2></center>
|
||||||
|
|
||||||
Added:
|
Added:
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -115,6 +115,18 @@ QVariant RootItem::data(int column, int role) const {
|
|||||||
Q_UNUSED(role)
|
Q_UNUSED(role)
|
||||||
|
|
||||||
switch (role) {
|
switch (role) {
|
||||||
|
case Qt::ToolTipRole:
|
||||||
|
if (column == FDS_MODEL_TITLE_INDEX) {
|
||||||
|
return m_title;
|
||||||
|
}
|
||||||
|
else if (column == FDS_MODEL_COUNTS_INDEX) {
|
||||||
|
//: Tooltip for "unread" column of feed list.
|
||||||
|
return tr("%n unread message(s).", 0, countOfUnreadMessages());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return QVariant();
|
||||||
|
}
|
||||||
|
|
||||||
case Qt::EditRole:
|
case Qt::EditRole:
|
||||||
if (column == FDS_MODEL_TITLE_INDEX) {
|
if (column == FDS_MODEL_TITLE_INDEX) {
|
||||||
return m_title;
|
return m_title;
|
||||||
|
2
src/services/abstract/recyclebin.cpp
Normal file → Executable file
2
src/services/abstract/recyclebin.cpp
Normal file → Executable file
@ -35,7 +35,7 @@ RecycleBin::~RecycleBin() {
|
|||||||
QVariant RecycleBin::data(int column, int role) const {
|
QVariant RecycleBin::data(int column, int role) const {
|
||||||
switch (role) {
|
switch (role) {
|
||||||
case Qt::ToolTipRole:
|
case Qt::ToolTipRole:
|
||||||
return tr("Recycle bin\n%1").arg(tr("%n deleted message(s).", 0, countOfAllMessages()));
|
return tr("Recycle bin\n\n%1").arg(tr("%n deleted message(s).", 0, countOfAllMessages()));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return RootItem::data(column, role);
|
return RootItem::data(column, role);
|
||||||
|
@ -77,12 +77,8 @@ QVariant StandardCategory::data(int column, int role) const {
|
|||||||
tr("\nThis category does not contain any nested items.") :
|
tr("\nThis category does not contain any nested items.") :
|
||||||
QString());
|
QString());
|
||||||
}
|
}
|
||||||
else if (column == FDS_MODEL_COUNTS_INDEX) {
|
|
||||||
//: Tooltip for "unread" column of feed list.
|
|
||||||
return tr("%n unread message(s).", "", countOfUnreadMessages());
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
return QVariant();
|
return Category::data(column, role);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -416,12 +416,8 @@ QVariant StandardFeed::data(int column, int role) const {
|
|||||||
auto_update_string,
|
auto_update_string,
|
||||||
NetworkFactory::networkErrorText(m_networkError));
|
NetworkFactory::networkErrorText(m_networkError));
|
||||||
}
|
}
|
||||||
else if (column == FDS_MODEL_COUNTS_INDEX) {
|
|
||||||
//: Tooltip for "unread" column of feed list.
|
|
||||||
return tr("%n unread message(s).", 0, countOfUnreadMessages());
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
return QVariant();
|
return Feed::data(column, role);
|
||||||
}
|
}
|
||||||
|
|
||||||
case Qt::ForegroundRole:
|
case Qt::ForegroundRole:
|
||||||
|
@ -144,12 +144,8 @@ QVariant StandardServiceRoot::data(int column, int role) const {
|
|||||||
if (column == FDS_MODEL_TITLE_INDEX) {
|
if (column == FDS_MODEL_TITLE_INDEX) {
|
||||||
return tr("This is service account for standard RSS/RDF/ATOM feeds.\n\nAccount ID: %1").arg(accountId());
|
return tr("This is service account for standard RSS/RDF/ATOM feeds.\n\nAccount ID: %1").arg(accountId());
|
||||||
}
|
}
|
||||||
else if (column == FDS_MODEL_COUNTS_INDEX) {
|
|
||||||
//: Tooltip for "unread" column of feed list.
|
|
||||||
return tr("%n unread message(s).", 0, countOfUnreadMessages());
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
return QVariant();
|
return ServiceRoot::data(column, role);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -32,9 +32,9 @@ FormEditAccount::FormEditAccount(QWidget *parent)
|
|||||||
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog | Qt::WindowSystemMenuHint);
|
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog | Qt::WindowSystemMenuHint);
|
||||||
setWindowIcon(qApp->icons()->fromTheme(QSL("application-ttrss")));
|
setWindowIcon(qApp->icons()->fromTheme(QSL("application-ttrss")));
|
||||||
|
|
||||||
m_ui->m_txtPassword->lineEdit()->setPlaceholderText(tr("Password for your TT-RSS account."));
|
m_ui->m_txtPassword->lineEdit()->setPlaceholderText(tr("Password for your TT-RSS account"));
|
||||||
m_ui->m_txtUsername->lineEdit()->setPlaceholderText(tr("Username for your TT-RSS account."));
|
m_ui->m_txtUsername->lineEdit()->setPlaceholderText(tr("Username for your TT-RSS account"));
|
||||||
m_ui->m_txtUrl->lineEdit()->setPlaceholderText(tr("FULL URL of your TT-RSS instance WITH trailing \"/api/\" string."));
|
m_ui->m_txtUrl->lineEdit()->setPlaceholderText(tr("FULL URL of your TT-RSS instance WITH trailing \"/api/\" string"));
|
||||||
m_ui->m_lblTestResult->setStatus(WidgetWithStatus::Information,
|
m_ui->m_lblTestResult->setStatus(WidgetWithStatus::Information,
|
||||||
tr("No test done yet."),
|
tr("No test done yet."),
|
||||||
tr("Here, results of connection test are shown."));
|
tr("Here, results of connection test are shown."));
|
||||||
@ -48,12 +48,12 @@ FormEditAccount::FormEditAccount(QWidget *parent)
|
|||||||
connect(m_ui->m_checkShowPassword, SIGNAL(toggled(bool)), this, SLOT(displayPassword(bool)));
|
connect(m_ui->m_checkShowPassword, SIGNAL(toggled(bool)), this, SLOT(displayPassword(bool)));
|
||||||
connect(m_ui->m_buttonBox, SIGNAL(accepted()), this, SLOT(onClickedOk()));
|
connect(m_ui->m_buttonBox, SIGNAL(accepted()), this, SLOT(onClickedOk()));
|
||||||
connect(m_ui->m_buttonBox, SIGNAL(rejected()), this, SLOT(onClickedCancel()));
|
connect(m_ui->m_buttonBox, SIGNAL(rejected()), this, SLOT(onClickedCancel()));
|
||||||
connect(m_ui->m_txtPassword->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(onPasswordChanged()));
|
connect(m_ui->m_txtPassword->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(onPasswordChanged()));
|
||||||
connect(m_ui->m_txtUsername->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(onUsernameChanged()));
|
connect(m_ui->m_txtUsername->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(onUsernameChanged()));
|
||||||
connect(m_ui->m_txtUrl->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(onUrlChanged()));
|
connect(m_ui->m_txtUrl->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(onUrlChanged()));
|
||||||
connect(m_ui->m_txtPassword->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(checkOkButton()));
|
connect(m_ui->m_txtPassword->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(checkOkButton()));
|
||||||
connect(m_ui->m_txtUsername->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(checkOkButton()));
|
connect(m_ui->m_txtUsername->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(checkOkButton()));
|
||||||
connect(m_ui->m_txtUrl->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(checkOkButton()));
|
connect(m_ui->m_txtUrl->lineEdit(), SIGNAL(textChanged(QString)), this, SLOT(checkOkButton()));
|
||||||
connect(m_ui->m_btnTestSetup, SIGNAL(clicked()), this, SLOT(performTest()));
|
connect(m_ui->m_btnTestSetup, SIGNAL(clicked()), this, SLOT(performTest()));
|
||||||
|
|
||||||
onPasswordChanged();
|
onPasswordChanged();
|
||||||
@ -76,6 +76,11 @@ TtRssServiceRoot *FormEditAccount::execForCreate() {
|
|||||||
void FormEditAccount::execForEdit(TtRssServiceRoot *existing_root) {
|
void FormEditAccount::execForEdit(TtRssServiceRoot *existing_root) {
|
||||||
setWindowTitle(tr("Edit existing Tiny Tiny RSS account"));
|
setWindowTitle(tr("Edit existing Tiny Tiny RSS account"));
|
||||||
m_editableRoot = existing_root;
|
m_editableRoot = existing_root;
|
||||||
|
|
||||||
|
m_ui->m_txtUsername->lineEdit()->setText(existing_root->network()->username());
|
||||||
|
m_ui->m_txtPassword->lineEdit()->setText(existing_root->network()->password());
|
||||||
|
m_ui->m_txtUrl->lineEdit()->setText(existing_root->network()->url());
|
||||||
|
|
||||||
exec();
|
exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,11 +19,14 @@
|
|||||||
|
|
||||||
#include "miscellaneous/application.h"
|
#include "miscellaneous/application.h"
|
||||||
#include "miscellaneous/settings.h"
|
#include "miscellaneous/settings.h"
|
||||||
|
#include "gui/dialogs/formmain.h"
|
||||||
#include "services/tt-rss/ttrssserviceentrypoint.h"
|
#include "services/tt-rss/ttrssserviceentrypoint.h"
|
||||||
#include "services/tt-rss/network/ttrssnetworkfactory.h"
|
#include "services/tt-rss/network/ttrssnetworkfactory.h"
|
||||||
|
#include "services/tt-rss/gui/formeditaccount.h"
|
||||||
|
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
#include <QSqlError>
|
#include <QSqlError>
|
||||||
|
#include <QPointer>
|
||||||
|
|
||||||
|
|
||||||
TtRssServiceRoot::TtRssServiceRoot(RootItem *parent)
|
TtRssServiceRoot::TtRssServiceRoot(RootItem *parent)
|
||||||
@ -51,6 +54,9 @@ QString TtRssServiceRoot::code() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool TtRssServiceRoot::editViaGui() {
|
bool TtRssServiceRoot::editViaGui() {
|
||||||
|
QPointer<FormEditAccount> form_pointer = new FormEditAccount(qApp->mainForm());
|
||||||
|
form_pointer.data()->execForEdit(this);
|
||||||
|
delete form_pointer.data();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,14 +77,12 @@ QVariant TtRssServiceRoot::data(int column, int role) const {
|
|||||||
case Qt::ToolTipRole:
|
case Qt::ToolTipRole:
|
||||||
// TODO: zobrazovat pokročile informace a statistiky.
|
// TODO: zobrazovat pokročile informace a statistiky.
|
||||||
if (column == FDS_MODEL_TITLE_INDEX) {
|
if (column == FDS_MODEL_TITLE_INDEX) {
|
||||||
return tr("This is service account TT-RSS (TinyTiny RSS) server.");
|
return tr("Tiny Tiny RSS\n\nAccount ID: %3\nUsername: %1\nServer: %2").arg(m_network->username(),
|
||||||
}
|
m_network->url(),
|
||||||
else if (column == FDS_MODEL_COUNTS_INDEX) {
|
QString::number(accountId()));
|
||||||
//: Tooltip for "unread" column of feed list.
|
|
||||||
return tr("%n unread message(s).", 0, countOfUnreadMessages());
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return QVariant();
|
return ServiceRoot::data(column, role);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user