mirror of
https://github.com/altlinux/admc.git
synced 2025-03-22 14:50:36 +03:00
Add middle name showing setting-action to main window
This commit is contained in:
parent
091b21fb5b
commit
252a68de21
@ -306,6 +306,7 @@ MainWindow::MainWindow(AdInterface &ad, QWidget *parent)
|
||||
{SETTING_show_non_containers_in_console_tree, ui->action_show_noncontainers},
|
||||
{SETTING_advanced_features, ui->action_advanced_features},
|
||||
{SETTING_load_optional_attribute_values, ui->action_load_optional_values},
|
||||
{SETTING_show_middle_name_when_creating, ui->action_show_middle_name},
|
||||
};
|
||||
|
||||
const QList<QString> simple_setting_list = {
|
||||
@ -314,7 +315,8 @@ MainWindow::MainWindow(AdInterface &ad, QWidget *parent)
|
||||
SETTING_log_searches,
|
||||
SETTING_timestamp_log,
|
||||
SETTING_show_login,
|
||||
SETTING_load_optional_attribute_values
|
||||
SETTING_load_optional_attribute_values,
|
||||
SETTING_show_middle_name_when_creating
|
||||
};
|
||||
|
||||
for (const QString &setting : bool_action_map.keys()) {
|
||||
|
@ -20,7 +20,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>22</height>
|
||||
<height>29</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menu_file">
|
||||
@ -76,6 +76,7 @@
|
||||
<addaction name="action_timestamps"/>
|
||||
<addaction name="action_show_noncontainers"/>
|
||||
<addaction name="action_load_optional_values"/>
|
||||
<addaction name="action_show_middle_name"/>
|
||||
<addaction name="menu_language"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_help">
|
||||
@ -406,6 +407,14 @@
|
||||
<string>Load optional attribute values</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_show_middle_name">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show middle name when creating</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
Loading…
x
Reference in New Issue
Block a user