mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Lint.
This commit is contained in:
parent
21f57b1acb
commit
b5b6e2b49c
4 changed files with 10 additions and 9 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include "../../interface/card_picture_loader/card_picture_loader_cache_method.h"
|
||||
#include "../../interface/card_picture_loader/card_picture_loader_local_schemes.h"
|
||||
#include "shortcuts_settings.h"
|
||||
#include <libcockatrice/settings/path_settings.h>
|
||||
|
||||
#include <QDate>
|
||||
#include <QLoggingCategory>
|
||||
|
|
@ -25,6 +24,7 @@
|
|||
#include <libcockatrice/settings/game_filters_settings.h>
|
||||
#include <libcockatrice/settings/layouts_settings.h>
|
||||
#include <libcockatrice/settings/message_settings.h>
|
||||
#include <libcockatrice/settings/path_settings.h>
|
||||
#include <libcockatrice/settings/recents_settings.h>
|
||||
#include <libcockatrice/settings/servers_settings.h>
|
||||
#include <libcockatrice/utility/macros.h>
|
||||
|
|
|
|||
|
|
@ -205,7 +205,8 @@ void DlgSettings::closeEvent(QCloseEvent *event)
|
|||
}
|
||||
}
|
||||
|
||||
if (!QDir(SettingsCache::instance().paths().getDeckPath()).exists() || SettingsCache::instance().paths().getDeckPath().isEmpty()) {
|
||||
if (!QDir(SettingsCache::instance().paths().getDeckPath()).exists() ||
|
||||
SettingsCache::instance().paths().getDeckPath().isEmpty()) {
|
||||
//! \todo Prompt to create the deck directory.
|
||||
if (QMessageBox::critical(
|
||||
this, tr("Error"),
|
||||
|
|
@ -216,7 +217,8 @@ void DlgSettings::closeEvent(QCloseEvent *event)
|
|||
}
|
||||
}
|
||||
|
||||
if (!QDir(SettingsCache::instance().paths().getPicsPath()).exists() || SettingsCache::instance().paths().getPicsPath().isEmpty()) {
|
||||
if (!QDir(SettingsCache::instance().paths().getPicsPath()).exists() ||
|
||||
SettingsCache::instance().paths().getPicsPath().isEmpty()) {
|
||||
//! \todo Prompt to create the pictures directory.
|
||||
if (QMessageBox::critical(this, tr("Error"),
|
||||
tr("The path to your card pictures directory is invalid. Would you like to go back "
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ void VisualDeckStorageWidget::reapplySortAndFilters()
|
|||
|
||||
void VisualDeckStorageWidget::createRootFolderWidget()
|
||||
{
|
||||
folderWidget = new VisualDeckStorageFolderDisplayWidget(this, this, SettingsCache::instance().paths().getDeckPath(), false,
|
||||
quickSettingsWidget->getShowFolders());
|
||||
folderWidget = new VisualDeckStorageFolderDisplayWidget(this, this, SettingsCache::instance().paths().getDeckPath(),
|
||||
false, quickSettingsWidget->getShowFolders());
|
||||
|
||||
scrollArea->setWidget(folderWidget); // this automatically destroys the old folderWidget
|
||||
scrollArea->widget()->setMaximumWidth(scrollArea->viewport()->width());
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@
|
|||
//! \todo Document this file.
|
||||
|
||||
#include "settings_manager.h"
|
||||
#include <libcockatrice/interfaces/interface_card_database_path_provider.h>
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QString>
|
||||
#include <libcockatrice/interfaces/interface_card_database_path_provider.h>
|
||||
|
||||
inline Q_LOGGING_CATEGORY(PathSettingsLog, "path_settings");
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ class PathSettings : public SettingsManager, public ICardDatabasePathProvider
|
|||
{
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void cardDatabasePathChanged();
|
||||
|
||||
public:
|
||||
|
|
@ -108,5 +108,4 @@ private:
|
|||
void recomputeCustomPicsPath();
|
||||
};
|
||||
|
||||
|
||||
#endif //COCKATRICE_PATH_SETTINGS_H
|
||||
#endif // COCKATRICE_PATH_SETTINGS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue