mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
kman: const ref arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8368e3857d
commit
3d1527985d
2 changed files with 6 additions and 6 deletions
|
@ -202,7 +202,7 @@ KManMainWindow::~KManMainWindow()
|
||||||
delete m_kmanui;
|
delete m_kmanui;
|
||||||
}
|
}
|
||||||
|
|
||||||
void KManMainWindow::changePath(const QString path) {
|
void KManMainWindow::changePath(const QString &path) {
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ void KManMainWindow::slotListChanged(const QString &text) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void KManMainWindow::slotListResult(const QString path, const QString fancy) {
|
void KManMainWindow::slotListResult(const QString &path, const QString &fancy) {
|
||||||
QListWidgetItem* manitem = new QListWidgetItem(KIcon("application-x-troff-man"), fancy, m_kmanui->listWidget);
|
QListWidgetItem* manitem = new QListWidgetItem(KIcon("application-x-troff-man"), fancy, m_kmanui->listWidget);
|
||||||
m_kmanui->listWidget->addItem(manitem);
|
m_kmanui->listWidget->addItem(manitem);
|
||||||
}
|
}
|
||||||
|
@ -351,7 +351,7 @@ void KManMainWindow::listManPages() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString KManMainWindow::manContent(const QString path) {
|
QString KManMainWindow::manContent(const QString &path) {
|
||||||
QString result;
|
QString result;
|
||||||
|
|
||||||
if (QStandardPaths::findExecutable("groff").isEmpty()) {
|
if (QStandardPaths::findExecutable("groff").isEmpty()) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
KManMainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
|
KManMainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
|
||||||
~KManMainWindow();
|
~KManMainWindow();
|
||||||
|
|
||||||
void changePath(const QString path);
|
void changePath(const QString &path);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void slotOpenAction();
|
void slotOpenAction();
|
||||||
|
@ -49,13 +49,13 @@ public slots:
|
||||||
void slotListChanged(const QString &text);
|
void slotListChanged(const QString &text);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void slotListResult(const QString path, const QString fancy);
|
void slotListResult(const QString &path, const QString &fancy);
|
||||||
void slotBusyStart();
|
void slotBusyStart();
|
||||||
void slotBusyFinish();
|
void slotBusyFinish();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void listManPages();
|
void listManPages();
|
||||||
QString manContent(const QString path);
|
QString manContent(const QString &path);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui_KManWindow *m_kmanui;
|
Ui_KManWindow *m_kmanui;
|
||||||
|
|
Loading…
Add table
Reference in a new issue