mirror of
https://github.com/altlinux/admc.git
synced 2025-03-12 12:58:20 +03:00
fix formatting before clang-format
This commit is contained in:
parent
c3fb7421a1
commit
9fec6f444a
@ -231,8 +231,7 @@ QList<QStandardItem *> ConsoleWidget::add_results_item(const int type, const QMo
|
||||
const QList<QStandardItem *> row = [&]() {
|
||||
QList<QStandardItem *> out;
|
||||
|
||||
const int column_count =
|
||||
[&]() {
|
||||
const int column_count = [&]() {
|
||||
if (parent_item == d->model->invisibleRootItem()) {
|
||||
return 1;
|
||||
} else {
|
||||
|
@ -97,7 +97,8 @@ PolicyResultsWidget::PolicyResultsWidget(QWidget *parent)
|
||||
ui->view->detail_view()->header()->resizeSection(3, 500);
|
||||
|
||||
const QVariant state = settings_get_variant(SETTING_policy_results_state);
|
||||
ui->view->restore_state(state, {
|
||||
ui->view->restore_state(state,
|
||||
{
|
||||
PolicyResultsColumn_Name,
|
||||
PolicyResultsColumn_Enforced,
|
||||
PolicyResultsColumn_Disabled,
|
||||
|
@ -33,14 +33,15 @@ const QHash<QString, bool> bool_setting_default_map = {
|
||||
{SETTING_confirm_actions, true},
|
||||
{SETTING_dev_mode, false},
|
||||
{SETTING_show_non_containers_in_console_tree, false},
|
||||
{SETTING_last_name_before_first_name, []() {
|
||||
const bool locale_is_russian = (QLocale::system().language() == QLocale::Russian);
|
||||
if (locale_is_russian) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}()},
|
||||
{SETTING_last_name_before_first_name,
|
||||
[]() {
|
||||
const bool locale_is_russian = (QLocale::system().language() == QLocale::Russian);
|
||||
if (locale_is_russian) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}()},
|
||||
{SETTING_show_console_tree, true},
|
||||
{SETTING_show_results_header, true},
|
||||
{SETTING_log_searches, false},
|
||||
|
@ -50,7 +50,7 @@ AttributesTab::AttributesTab() {
|
||||
{
|
||||
{AttributesColumn_Name, tr("Name")},
|
||||
{AttributesColumn_Value, tr("Value")},
|
||||
{AttributesColumn_Type, tr("Type")},
|
||||
{AttributesColumn_Type, tr("Type")}
|
||||
});
|
||||
|
||||
auto filter_menu = new AttributesTabFilterMenu(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user