Commit 10197318 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Fix a few simply clazy warnings

parent f45facf1
......@@ -164,11 +164,11 @@ void Dashboard::populateGrid()
{
int j = 0, k = 0, jc = 0, kc = 0;
// key = url, value = title
QMapIterator<QString, QString> it(m_recentFilesMap);
while (it.hasNext()) {
it.next();
QString urlString = it.key();
QString titleString = it.value();
QUrl url(QUrl::fromLocalFile(urlString));
Collection *collection = new Collection(&url, this);
......
......@@ -61,6 +61,8 @@ public:
Component currentComponent();
QSize sizeHint() const override;
public slots:
/** Updates connections when the ParleyDocument pointer is changed to @p doc **/
void documentUpdated(const std::shared_ptr<KEduVocDocument> &doc);
......@@ -77,8 +79,6 @@ public slots:
/** remove an entry from the list of recent files */
void removeRecentFile(const QUrl &url);
QSize sizeHint() const override;
/** set up options */
void slotGeneralOptions();
void slotApplyPreferences();
......
......@@ -69,7 +69,7 @@ public:
void setSynonym(const QString &entry) override;
public Q_SLOTS:
void setMode(Mode mode) override;
void setMode(Practice::AbstractFrontend::Mode mode) override;
void showQuestion() override;
void showSolution() override;
void setBoxes(grade_t currentBox, grade_t newBoxIfCorrect, grade_t newBoxIfWrong) override;
......
......@@ -242,5 +242,5 @@ void PracticeStateMachine::gradeEntryAndContinue()
currentEntryFinished();
}
}
emit nextEntry();
nextEntry();
}
Supports Markdown
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