Commit 606e0fc2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 61f7e825
......@@ -36,6 +36,12 @@ void TextUtilsTest::test_flowText()
QCOMPARE(TextUtils::flowText(originalString, indent, lineLength), quotedString);
}
TextUtilsTest::TextUtilsTest(QObject *parent)
: QObject(parent)
{
}
void TextUtilsTest::test_flowText_data()
{
QTest::addColumn<QString>("originalString");
......
......@@ -24,6 +24,8 @@
class TextUtilsTest : public QObject
{
Q_OBJECT
public:
explicit TextUtilsTest(QObject *parent = Q_NULLPTR);
private Q_SLOTS:
void test_flowText_data();
......
......@@ -442,7 +442,7 @@ void RichTextComposerTest::testLoadImage()
QString image2Path = KIconLoader::global()->iconPath(QStringLiteral("arrow-up"), KIconLoader::Small, false);
QImage image1, image2;
QVERIFY(image1.load(image1Path));
QVERIFY(image2.load(image1Path));
QVERIFY(image2.load(image2Path));
edit.setHtml(QStringLiteral("Bla<img src=\"folder-new.png\">Bla"));
......
......@@ -27,6 +27,7 @@ namespace KPIMTextEdit
class RichTextComposer;
class KPIMTEXTEDIT_EXPORT RichTextComposerEmailQuoteHighlighter : public Sonnet::Highlighter
{
Q_OBJECT
public:
/**
......
......@@ -32,6 +32,7 @@ namespace KPIMTextEdit
class KPIMTEXTEDIT_EXPORT InsertTableDialog : public QDialog
{
Q_OBJECT
public:
explicit InsertTableDialog(QWidget *parent);
~InsertTableDialog();
......
......@@ -32,6 +32,7 @@ namespace KPIMTextEdit
class KPIMTEXTEDIT_EXPORT TableCellFormatDialog : public QDialog
{
Q_OBJECT
public:
explicit TableCellFormatDialog(QWidget *parent);
~TableCellFormatDialog();
......
......@@ -32,6 +32,7 @@ namespace KPIMTextEdit
class KPIMTEXTEDIT_EXPORT TableFormatDialog : public QDialog
{
Q_OBJECT
public:
explicit TableFormatDialog(QWidget *parent);
~TableFormatDialog();
......
......@@ -27,7 +27,8 @@
#include <QToolButton>
#include <QPushButton>
TextGoToLineWidgetTest::TextGoToLineWidgetTest()
TextGoToLineWidgetTest::TextGoToLineWidgetTest(QObject *parent)
: QObject(parent)
{
}
......
......@@ -25,7 +25,7 @@ class TextGoToLineWidgetTest : public QObject
{
Q_OBJECT
public:
TextGoToLineWidgetTest();
explicit TextGoToLineWidgetTest(QObject *parent = Q_NULLPTR);
private Q_SLOTS:
void shouldHaveDefaultValuesOnCreation();
......
......@@ -33,6 +33,7 @@ namespace KPIMTextEdit
{
class TextMessageIndicator : public QWidget
{
Q_OBJECT
public:
explicit TextMessageIndicator(QWidget *parent = Q_NULLPTR);
......
......@@ -117,7 +117,7 @@ void TextToSpeechConfigWidget::writeConfig()
grp.writeEntry("volume", mVolume->value());
grp.writeEntry("rate", static_cast<double>(mRate->value() / 100));
grp.writeEntry("pitch", static_cast<double>(mPitch->value() / 100));
grp.writeEntry("localeName", mLanguage->currentData().value<QLocale>().name());
grp.writeEntry("localeName", mLanguage->currentData().toLocale().name());
grp.writeEntry("engine", mAvailableEngine->currentData().toString());
grp.writeEntry("voice", mVoice->currentData().toString());
}
......
......@@ -35,7 +35,7 @@ void TextToSpeechLanguageComboBox::selectLocaleName(const QString &localeName)
{
const int countItem(count());
for (int i = 0; i < countItem; ++i) {
if (itemData(i).value<QLocale>().name() == localeName) {
if (itemData(i).toLocale().name() == localeName) {
setCurrentIndex(i);
break;
}
......
......@@ -30,9 +30,10 @@ using namespace KPIMTextEdit;
class Window : public QWidget
{
Q_OBJECT
public:
Window()
: QWidget()
explicit Window(QWidget *parent = Q_NULLPTR)
: QWidget(parent)
{
SlideContainer *container = new SlideContainer(this);
......@@ -64,3 +65,4 @@ int main(int argc, char *argv[])
return app.exec();
}
#include "slidecontainer_gui.moc"
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