mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Uncomment defaults, include main category.
This commit is contained in:
parent
67b2944078
commit
530fdb48d0
3 changed files with 12 additions and 12 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
[Rules]
|
[Rules]
|
||||||
# Uncomment a rule to disable logging for that category
|
# Uncomment a rule to disable logging for that category
|
||||||
|
|
||||||
|
# main = false
|
||||||
# qt_translator = false
|
# qt_translator = false
|
||||||
|
# window_main.* = false
|
||||||
window_main.* = false
|
# release_channel = false
|
||||||
release_channel = false
|
# spoiler_background_updater = false
|
||||||
spoiler_background_updater = false
|
# theme_manager = false
|
||||||
theme_manager = false
|
# sound_engine = false
|
||||||
sound_engine = false
|
|
||||||
# tapped_out_interface = false
|
# tapped_out_interface = false
|
||||||
|
|
||||||
# tab_game = false
|
# tab_game = false
|
||||||
|
|
@ -31,14 +31,13 @@ sound_engine = false
|
||||||
|
|
||||||
# user_info_connection = false
|
# user_info_connection = false
|
||||||
|
|
||||||
picture_loader.* = false
|
|
||||||
# picture_loader = false
|
# picture_loader = false
|
||||||
# picture_loader.worker = false
|
# picture_loader.worker = false
|
||||||
# deck_loader = false
|
# deck_loader = false
|
||||||
# card_database = false
|
# card_database = false
|
||||||
card_database.loading = false
|
# card_database.loading = false
|
||||||
# card_database.loading.success_or_failure = false
|
# card_database.loading.success_or_failure = false
|
||||||
cockatrice_xml.* = false
|
# cockatrice_xml.* = false
|
||||||
# cockatrice_xml.xml_3_parser = false
|
# cockatrice_xml.xml_3_parser = false
|
||||||
# cockatrice_xml.xml_4_parser = false
|
# cockatrice_xml.xml_4_parser = false
|
||||||
# set_list = false
|
# set_list = false
|
||||||
|
|
|
||||||
|
|
@ -194,13 +194,13 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
QLocale::setDefault(QLocale::English);
|
QLocale::setDefault(QLocale::English);
|
||||||
|
|
||||||
qDebug("main(): starting main program");
|
qCDebug(MainLog) << "main(): starting main program";
|
||||||
|
|
||||||
MainWindow ui;
|
MainWindow ui;
|
||||||
if (parser.isSet("connect")) {
|
if (parser.isSet("connect")) {
|
||||||
ui.setConnectTo(parser.value("connect"));
|
ui.setConnectTo(parser.value("connect"));
|
||||||
}
|
}
|
||||||
qDebug("main(): MainWindow constructor finished");
|
qCDebug(MainLog) << "main(): MainWindow constructor finished";
|
||||||
|
|
||||||
ui.setWindowIcon(QPixmap("theme:cockatrice"));
|
ui.setWindowIcon(QPixmap("theme:cockatrice"));
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||||
|
|
@ -215,7 +215,7 @@ int main(int argc, char *argv[])
|
||||||
SpoilerBackgroundUpdater spoilerBackgroundUpdater;
|
SpoilerBackgroundUpdater spoilerBackgroundUpdater;
|
||||||
|
|
||||||
ui.show();
|
ui.show();
|
||||||
qDebug("main(): ui.show() finished");
|
qCDebug(MainLog) << "main(): ui.show() finished";
|
||||||
|
|
||||||
// force shortcuts to be shown/hidden in right-click menus, regardless of system defaults
|
// force shortcuts to be shown/hidden in right-click menus, regardless of system defaults
|
||||||
qApp->setAttribute(Qt::AA_DontShowShortcutsInContextMenus, !SettingsCache::instance().getShowShortcuts());
|
qApp->setAttribute(Qt::AA_DontShowShortcutsInContextMenus, !SettingsCache::instance().getShowShortcuts());
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
|
|
||||||
|
inline Q_LOGGING_CATEGORY(MainLog, "main");
|
||||||
inline Q_LOGGING_CATEGORY(QtTranslatorDebug, "qt_translator");
|
inline Q_LOGGING_CATEGORY(QtTranslatorDebug, "qt_translator");
|
||||||
|
|
||||||
class CardDatabase;
|
class CardDatabase;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue