mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
More auto
This commit is contained in:
parent
268bebbddd
commit
e2276cbc1c
@ -754,7 +754,7 @@ void MainWindowViewer::clearRecentFiles()
|
|||||||
|
|
||||||
void MainWindowViewer::openRecent()
|
void MainWindowViewer::openRecent()
|
||||||
{
|
{
|
||||||
auto *action = qobject_cast<QAction *>(sender());
|
auto action = qobject_cast<QAction *>(sender());
|
||||||
|
|
||||||
openComicFromRecentAction(action);
|
openComicFromRecentAction(action);
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ PageLabelWidget::PageLabelWidget(QWidget *parent)
|
|||||||
void PageLabelWidget::show()
|
void PageLabelWidget::show()
|
||||||
{
|
{
|
||||||
if (this->pos().y() <= 0 && animation->state() != QPropertyAnimation::Running) {
|
if (this->pos().y() <= 0 && animation->state() != QPropertyAnimation::Running) {
|
||||||
auto *parent = dynamic_cast<QWidget *>(this->parent());
|
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||||
if (parent == nullptr) {
|
if (parent == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ void PageLabelWidget::show()
|
|||||||
void PageLabelWidget::hide()
|
void PageLabelWidget::hide()
|
||||||
{
|
{
|
||||||
if (this->pos().y() >= 0 && animation->state() != QPropertyAnimation::Running) {
|
if (this->pos().y() >= 0 && animation->state() != QPropertyAnimation::Running) {
|
||||||
auto *parent = dynamic_cast<QWidget *>(this->parent());
|
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||||
if (parent == nullptr) {
|
if (parent == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ void PageLabelWidget::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
void PageLabelWidget::updatePosition()
|
void PageLabelWidget::updatePosition()
|
||||||
{
|
{
|
||||||
auto *parent = dynamic_cast<QWidget *>(this->parent());
|
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||||
if (parent == nullptr) {
|
if (parent == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ void Startup::start()
|
|||||||
logger->installMsgHandler();*/
|
logger->installMsgHandler();*/
|
||||||
|
|
||||||
// Configure template loader and cache
|
// Configure template loader and cache
|
||||||
auto *templateSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
auto templateSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||||
templateSettings->beginGroup("templates");
|
templateSettings->beginGroup("templates");
|
||||||
|
|
||||||
if (templateSettings->value("cacheSize").isNull())
|
if (templateSettings->value("cacheSize").isNull())
|
||||||
@ -74,7 +74,7 @@ void Startup::start()
|
|||||||
Static::templateLoader = new TemplateCache(templateSettings, app);
|
Static::templateLoader = new TemplateCache(templateSettings, app);
|
||||||
|
|
||||||
// Configure session store
|
// Configure session store
|
||||||
auto *sessionSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
auto sessionSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||||
sessionSettings->beginGroup("sessions");
|
sessionSettings->beginGroup("sessions");
|
||||||
|
|
||||||
if (sessionSettings->value("expirationTime").isNull())
|
if (sessionSettings->value("expirationTime").isNull())
|
||||||
@ -85,7 +85,7 @@ void Startup::start()
|
|||||||
Static::yacreaderSessionStore = new YACReaderHttpSessionStore(Static::sessionStore, app);
|
Static::yacreaderSessionStore = new YACReaderHttpSessionStore(Static::sessionStore, app);
|
||||||
|
|
||||||
// Configure static file controller
|
// Configure static file controller
|
||||||
auto *fileSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
auto fileSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||||
fileSettings->beginGroup("docroot");
|
fileSettings->beginGroup("docroot");
|
||||||
|
|
||||||
QString basedocroot = "./server/docroot";
|
QString basedocroot = "./server/docroot";
|
||||||
@ -106,7 +106,7 @@ void Startup::start()
|
|||||||
|
|
||||||
// Configure and start the TCP listener
|
// Configure and start the TCP listener
|
||||||
qDebug("ServiceHelper: Starting service");
|
qDebug("ServiceHelper: Starting service");
|
||||||
auto *listenerSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
auto listenerSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||||
listenerSettings->beginGroup("listener");
|
listenerSettings->beginGroup("listener");
|
||||||
|
|
||||||
if (listenerSettings->value("maxRequestSize").isNull())
|
if (listenerSettings->value("maxRequestSize").isNull())
|
||||||
|
Loading…
Reference in New Issue
Block a user