Commit 198cc555 authored by Kurt Hindenburg's avatar Kurt Hindenburg

uncrustify using kf5 config

parent 690e1d28
......@@ -25,8 +25,8 @@
using Konsole::RenameTabWidget;
RenameTabWidget::RenameTabWidget(QWidget* parent)
: QWidget(parent)
RenameTabWidget::RenameTabWidget(QWidget *parent) :
QWidget(parent)
{
_ui = new Ui::RenameTabWidget();
_ui->setupUi(this);
......@@ -34,14 +34,18 @@ RenameTabWidget::RenameTabWidget(QWidget* parent)
_ui->tabTitleEdit->setClearButtonEnabled(true);
_ui->remoteTabTitleEdit->setClearButtonEnabled(true);
connect(_ui->tabTitleEdit, &QLineEdit::textChanged, this, &Konsole::RenameTabWidget::tabTitleFormatChanged);
connect(_ui->remoteTabTitleEdit, &QLineEdit::textChanged, this, &Konsole::RenameTabWidget::remoteTabTitleFormatChanged);
connect(_ui->tabTitleEdit, &QLineEdit::textChanged, this,
&Konsole::RenameTabWidget::tabTitleFormatChanged);
connect(_ui->remoteTabTitleEdit, &QLineEdit::textChanged, this,
&Konsole::RenameTabWidget::remoteTabTitleFormatChanged);
_ui->tabTitleFormatButton->setContext(Session::LocalTabTitle);
connect(_ui->tabTitleFormatButton, &Konsole::TabTitleFormatButton::dynamicElementSelected, this, &Konsole::RenameTabWidget::insertTabTitleText);
connect(_ui->tabTitleFormatButton, &Konsole::TabTitleFormatButton::dynamicElementSelected, this,
&Konsole::RenameTabWidget::insertTabTitleText);
_ui->remoteTabTitleFormatButton->setContext(Session::RemoteTabTitle);
connect(_ui->remoteTabTitleFormatButton, &Konsole::TabTitleFormatButton::dynamicElementSelected, this, &Konsole::RenameTabWidget::insertRemoteTabTitleText);
connect(_ui->remoteTabTitleFormatButton, &Konsole::TabTitleFormatButton::dynamicElementSelected,
this, &Konsole::RenameTabWidget::insertRemoteTabTitleText);
}
RenameTabWidget::~RenameTabWidget()
......@@ -59,35 +63,34 @@ void RenameTabWidget::focusRemoteTabTitleText()
_ui->remoteTabTitleEdit->setFocus();
}
void RenameTabWidget::setTabTitleText(const QString& text)
void RenameTabWidget::setTabTitleText(const QString &text)
{
_ui->tabTitleEdit->setText(text);
}
void RenameTabWidget::setRemoteTabTitleText(const QString& text)
void RenameTabWidget::setRemoteTabTitleText(const QString &text)
{
_ui->remoteTabTitleEdit->setText(text);
}
QString RenameTabWidget::tabTitleText() const
{
return(_ui->tabTitleEdit->text());
return _ui->tabTitleEdit->text();
}
QString RenameTabWidget::remoteTabTitleText() const
{
return(_ui->remoteTabTitleEdit->text());
return _ui->remoteTabTitleEdit->text();
}
void RenameTabWidget::insertTabTitleText(const QString& text)
void RenameTabWidget::insertTabTitleText(const QString &text)
{
_ui->tabTitleEdit->insert(text);
focusTabTitleText();
}
void RenameTabWidget::insertRemoteTabTitleText(const QString& text)
void RenameTabWidget::insertRemoteTabTitleText(const QString &text)
{
_ui->remoteTabTitleEdit->insert(text);
focusRemoteTabTitleText();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment