Commit 416bfa29 authored by Laurent Montel's avatar Laurent Montel 😁

Fix some clazy warning

parent a73e6d9e
......@@ -155,7 +155,7 @@ bool DancingBars::addSensor( const QString &hostName, const QString &name,
QString tooltip;
for ( int i = 0; i < mBars; ++i ) {
tooltip += QStringLiteral( "%1%2:%3" ).arg( i != 0 ? QLatin1Literal("\n") : QString() )
tooltip += QStringLiteral( "%1%2:%3" ).arg( i != 0 ? QStringLiteral("\n") : QString() )
.arg( sensors().at( i )->hostName() )
.arg( sensors().at( i )->name() );
}
......
......@@ -398,7 +398,7 @@ ListView::saveSettings(QDomDocument& doc, QDomElement& element)
void
ListView::configureSettings()
{
lvs = new ListViewSettings(this, "ListViewSettings");
lvs = new ListViewSettings(this, QStringLiteral("ListViewSettings"));
Q_CHECK_PTR(lvs);
/* QPalette pal = monitor->palette();
......
......@@ -139,7 +139,7 @@ void Workspace::newWorkSheet()
WorkSheet* sheet = new WorkSheet( dlg.rows(), dlg.columns(), dlg.interval(), nullptr );
sheet->setTitle( dlg.sheetTitle() );
sheet->setFileName( sheetName + ".sgrd" );
insertTab(-1, sheet, dlg.sheetTitle().replace("&", "&&") );
insertTab(-1, sheet, dlg.sheetTitle().replace(QLatin1String("&"), QLatin1String("&&")) );
mSheetList.append( sheet );
setCurrentIndex(indexOf( sheet ));
connect( sheet, &WorkSheet::titleChanged,
......@@ -341,7 +341,7 @@ bool Workspace::restoreWorkSheet( const QString &fileName, bool switchToTab)
connect( sheet, &WorkSheet::titleChanged,
this, &Workspace::updateSheetTitle);
insertTab(-1, sheet, sheet->translatedTitle().replace("&", "&&") );
insertTab(-1, sheet, sheet->translatedTitle().replace(QLatin1String("&"), QLatin1String("&&")) );
if(switchToTab)
setCurrentIndex(indexOf(sheet));
......
......@@ -92,8 +92,8 @@ TopLevel::TopLevel()
mWorkSpace = new Workspace( mSplitter );
connect( mWorkSpace, SIGNAL(setCaption(QString)),
SLOT(setCaption(QString)) );
connect( mWorkSpace, SIGNAL(currentChanged(int)),
SLOT(currentTabChanged(int)) );
connect( mWorkSpace, &QTabWidget::currentChanged,
this, &TopLevel::currentTabChanged );
/* Create the status bar. It displays some information about the
* number of processes and the memory consumption of the local
......
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