mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
[keyboard] Apply coding style
This commit is contained in:
parent
365a2ad6fd
commit
6aedf4401f
6 changed files with 17 additions and 15 deletions
|
@ -12,7 +12,8 @@
|
|||
|
||||
#include <QString>
|
||||
|
||||
struct AdditionalLayoutInfo {
|
||||
struct AdditionalLayoutInfo
|
||||
{
|
||||
QString additionalLayout;
|
||||
QString additionalVariant;
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
#ifndef KEYBOARD_CONFIG_H
|
||||
#define KEYBOARD_CONFIG_H
|
||||
|
||||
#include "AdditionalLayoutInfo.h"
|
||||
#include "Job.h"
|
||||
#include "KeyboardLayoutModel.h"
|
||||
#include "AdditionalLayoutInfo.h"
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QMap>
|
||||
|
|
|
@ -53,10 +53,10 @@ KeyboardPage::KeyboardPage( Config* config, QWidget* parent )
|
|||
|
||||
ui->physicalModelSelector->setModel( config->keyboardModels() );
|
||||
// Connect signals and slots
|
||||
connect( ui->variantSelector, &QListWidget::currentItemChanged, this, &KeyboardPage::onListVariantCurrentItemChanged );
|
||||
|
||||
connect(
|
||||
ui->buttonRestore, &QPushButton::clicked, [this] {
|
||||
ui->variantSelector, &QListWidget::currentItemChanged, this, &KeyboardPage::onListVariantCurrentItemChanged );
|
||||
|
||||
connect( ui->buttonRestore, &QPushButton::clicked, [this] {
|
||||
cDebug() << "Restore clicked";
|
||||
// ui->physicalModelSelector->setCurrentIndex( m_defaultIndex );
|
||||
} );
|
||||
|
|
|
@ -269,12 +269,14 @@ SetKeyboardLayoutJob::writeX11Data( const QString& keyboardConfPath ) const
|
|||
{
|
||||
if ( !m_layout.isEmpty() )
|
||||
{
|
||||
stream << " Option \"XkbLayout\" \"" << m_additionalLayoutInfo.additionalLayout << "," << m_layout << "\"\n";
|
||||
stream << " Option \"XkbLayout\" \"" << m_additionalLayoutInfo.additionalLayout << "," << m_layout
|
||||
<< "\"\n";
|
||||
}
|
||||
|
||||
if ( !m_variant.isEmpty() )
|
||||
{
|
||||
stream << " Option \"XkbVariant\" \"" << m_additionalLayoutInfo.additionalVariant << "," << m_variant << "\"\n";
|
||||
stream << " Option \"XkbVariant\" \"" << m_additionalLayoutInfo.additionalVariant << "," << m_variant
|
||||
<< "\"\n";
|
||||
}
|
||||
|
||||
stream << " Option \"XkbOptions\" \"" << m_additionalLayoutInfo.groupSwitcher << "\"\n";
|
||||
|
|
|
@ -11,9 +11,8 @@
|
|||
#ifndef SETKEYBOARDLAYOUTJOB_H
|
||||
#define SETKEYBOARDLAYOUTJOB_H
|
||||
|
||||
#include "Job.h"
|
||||
#include "AdditionalLayoutInfo.h"
|
||||
|
||||
#include "Job.h"
|
||||
|
||||
|
||||
class SetKeyboardLayoutJob : public Calamares::Job
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue