Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2217b906 authored by Laurent Montel's avatar Laurent Montel 😁

Initialize value

parent ad8c975e
......@@ -39,11 +39,11 @@ using namespace KPIMTextEdit;
class KLinkDialog::KLinkDialogPrivate
{
public:
QLabel *textLabel;
QLineEdit *textLineEdit;
QLabel *linkUrlLabel;
QLineEdit *linkUrlLineEdit;
QDialogButtonBox *buttonBox;
QLabel *textLabel = nullptr;
QLineEdit *textLineEdit = nullptr;
QLabel *linkUrlLabel = nullptr;
QLineEdit *linkUrlLineEdit = nullptr;
QDialogButtonBox *buttonBox = nullptr;
};
//@endcond
......
......@@ -131,7 +131,7 @@ private:
void reformatList(QTextBlock block);
void reformatList();
QTextEdit *textEdit;
QTextEdit *textEdit = nullptr;
int listBottomMargin;
int listTopMargin;
......
......@@ -59,11 +59,11 @@ public:
}
QString quotePrefix;
RichTextComposerControler *composerControler;
RichTextComposerActions *richTextComposerActions;
KPIMTextEdit::RichTextExternalComposer *externalComposer;
RichTextComposer *q;
bool forcePlainTextMarkup;
RichTextComposerControler *composerControler = nullptr;
RichTextComposerActions *richTextComposerActions = nullptr;
KPIMTextEdit::RichTextExternalComposer *externalComposer = nullptr;
RichTextComposer *q = nullptr;
bool forcePlainTextMarkup = false;
RichTextComposer::Mode mode;
};
......
......@@ -75,51 +75,51 @@ public:
QList<QAction *> richTextActionList;
KPIMTextEdit::RichTextComposerControler *composerControler;
KToggleAction *action_align_left;
KToggleAction *action_align_right;
KToggleAction *action_align_center;
KToggleAction *action_align_justify;
KPIMTextEdit::RichTextComposerControler *composerControler = nullptr;
KToggleAction *action_align_left = nullptr;
KToggleAction *action_align_right = nullptr;
KToggleAction *action_align_center = nullptr;
KToggleAction *action_align_justify = nullptr;
KToggleAction *action_direction_ltr;
KToggleAction *action_direction_rtl;
KToggleAction *action_direction_ltr = nullptr;
KToggleAction *action_direction_rtl = nullptr;
KToggleAction *action_text_superscript;
KToggleAction *action_text_subscript;
KToggleAction *action_text_superscript = nullptr;
KToggleAction *action_text_subscript = nullptr;
KToggleAction *action_text_bold;
KToggleAction *action_text_italic;
KToggleAction *action_text_underline;
KToggleAction *action_text_strikeout;
KToggleAction *action_text_bold = nullptr;
KToggleAction *action_text_italic = nullptr;
KToggleAction *action_text_underline = nullptr;
KToggleAction *action_text_strikeout = nullptr;
KFontAction *action_font_family;
KFontSizeAction *action_font_size;
KFontAction *action_font_family = nullptr;
KFontSizeAction *action_font_size = nullptr;
QAction *action_insert_horizontal_rule;
QAction *action_text_foreground_color;
QAction *action_text_background_color;
QAction *action_manage_link;
QAction *action_insert_horizontal_rule = nullptr;
QAction *action_text_foreground_color = nullptr;
QAction *action_text_background_color = nullptr;
QAction *action_manage_link = nullptr;
QAction *action_list_indent;
QAction *action_list_dedent;
QAction *action_list_indent = nullptr;
QAction *action_list_dedent = nullptr;
KSelectAction *action_list_style;
KSelectAction *action_list_style = nullptr;
QAction *action_paste_quotation;
QAction *action_add_quote_chars;
QAction *action_remove_quote_chars;
QAction *action_paste_without_formatting;
QAction *action_paste_quotation = nullptr;
QAction *action_add_quote_chars = nullptr;
QAction *action_remove_quote_chars = nullptr;
QAction *action_paste_without_formatting = nullptr;
QAction *action_add_image;
QAction *action_add_emoticon;
QAction *action_insert_html;
KPIMTextEdit::TableActionMenu *action_add_table;
QAction *action_delete_line;
QAction *action_format_reset;
QAction *action_add_image = nullptr;
QAction *action_add_emoticon = nullptr;
QAction *action_insert_html = nullptr;
KPIMTextEdit::TableActionMenu *action_add_table = nullptr;
QAction *action_delete_line = nullptr;
QAction *action_format_reset = nullptr;
KToggleAction *action_format_painter;
KToggleAction *action_format_painter = nullptr;
bool richTextEnabled;
bool richTextEnabled = false;
};
RichTextComposerActions::RichTextComposerActions(KPIMTextEdit::RichTextComposerControler *controler, QObject *parent)
......
......@@ -78,10 +78,10 @@ public:
QColor mLinkColor;
QTextCharFormat painterFormat;
bool painterActive;
NestedListHelper *nestedListHelper;
RichTextComposer *richtextComposer;
RichTextComposerImages *richTextImages;
RichTextComposerControler *q;
NestedListHelper *nestedListHelper = nullptr;
RichTextComposer *richtextComposer = nullptr;
RichTextComposerImages *richTextImages = nullptr;
RichTextComposerControler *q = nullptr;
};
void RichTextComposerControler::RichTextComposerControlerPrivate::selectLinkText(QTextCursor *cursor) const
......
......@@ -29,7 +29,7 @@ public:
{
}
RichTextComposer *composerEditor;
RichTextComposer *composerEditor = nullptr;
};
RichTextComposerEmailQuoteDecorator::RichTextComposerEmailQuoteDecorator(RichTextComposer *textEdit)
......
......@@ -29,8 +29,8 @@ public:
QColor col2;
QColor col3;
QColor misspelledColor;
bool spellCheckingEnabled;
RichTextComposer *parent;
bool spellCheckingEnabled = false;
RichTextComposer *parent = nullptr;
};
RichTextComposerEmailQuoteHighlighter::RichTextComposerEmailQuoteHighlighter(RichTextComposer *textEdit, const QColor &normalColor, const QColor &quoteDepth1, const QColor &quoteDepth2,
......
......@@ -46,7 +46,7 @@ public:
*/
QStringList mImageNames;
RichTextComposer *composer;
RichTextComposer *composer = nullptr;
};
RichTextComposerImages::RichTextComposerImages(RichTextComposer *composer, QObject *parent)
......
......@@ -32,7 +32,7 @@ public:
{
}
KPIMTextEdit::RichTextComposer *richTextComposer;
KPIMTextEdit::RichTextComposer *richTextComposer = nullptr;
};
RichTextComposerWidget::RichTextComposerWidget(QWidget *parent)
......
......@@ -42,10 +42,10 @@ public:
void cannotStartProcess(const QString &commandLine);
QString extEditorPath;
KProcess *externalEditorProcess;
QTemporaryFile *extEditorTempFile;
RichTextComposer *richTextComposer;
bool useExtEditor;
KProcess *externalEditorProcess = nullptr;
QTemporaryFile *extEditorTempFile = nullptr;
RichTextComposer *richTextComposer = nullptr;
bool useExtEditor = false;
};
RichTextExternalComposer::RichTextExternalComposer(RichTextComposer *composer, QObject *parent)
......
......@@ -46,8 +46,8 @@ public:
delete emoticonMenu;
}
QMenu *emoticonMenu;
EmoticonTextEditSelector *selector;
QMenu *emoticonMenu = nullptr;
EmoticonTextEditSelector *selector = nullptr;
};
EmoticonTextEditAction::EmoticonTextEditAction(QObject *parent)
......
......@@ -65,11 +65,10 @@ class EmoticonTextEditSelector::EmoticonTextEditSelectorPrivate
{
public:
EmoticonTextEditSelectorPrivate()
: listEmoticon(nullptr)
{
}
QListWidget *listEmoticon;
QListWidget *listEmoticon = nullptr;
};
EmoticonTextEditSelector::EmoticonTextEditSelector(QWidget *parent)
......
......@@ -67,9 +67,9 @@ public:
}
void _k_slotTextChanged();
QPushButton *okButton;
InsertHtmlEditor *editor;
InsertHtmlDialog *q;
QPushButton *okButton = nullptr;
InsertHtmlEditor *editor = nullptr;
InsertHtmlDialog *q = nullptr;
};
void InsertHtmlDialogPrivate::_k_slotTextChanged()
......
......@@ -59,9 +59,9 @@ public:
okButton->setEnabled(enabled);
}
InsertImageWidget *imageWidget;
QPushButton *okButton;
InsertImageDialog *q;
InsertImageWidget *imageWidget = nullptr;
QPushButton *okButton = nullptr;
InsertImageDialog *q = nullptr;
};
InsertImageDialog::InsertImageDialog(QWidget *parent)
......
......@@ -132,13 +132,13 @@ public:
void _k_slotImageHeightChanged(int);
qreal imageRatio;
QCheckBox *keepOriginalSize;
QCheckBox *keepImageRatio;
QSpinBox *width;
QSpinBox *height;
KUrlRequester *imageUrlRequester;
QLabel *preview;
InsertImageWidget *q;
QCheckBox *keepOriginalSize = nullptr;
QCheckBox *keepImageRatio = nullptr;
QSpinBox *width = nullptr;
QSpinBox *height = nullptr;
KUrlRequester *imageUrlRequester = nullptr;
QLabel *preview = nullptr;
InsertImageWidget *q = nullptr;
};
void InsertImageWidgetPrivate::_k_slotKeepOriginalSizeClicked(bool checked)
......
......@@ -56,8 +56,8 @@ public:
mainLayout->addWidget(buttonBox);
}
InsertTableWidget *insertTableWidget;
InsertTableDialog *q;
InsertTableWidget *insertTableWidget = nullptr;
InsertTableDialog *q = nullptr;
};
InsertTableDialog::InsertTableDialog(QWidget *parent)
......
......@@ -75,13 +75,13 @@ public:
q->setLayout(gridLayout);
}
QSpinBox *mColumns;
QSpinBox *mRows;
QSpinBox *mBorder;
QSpinBox *mLength;
KComboBox *mTypeOfLength;
QSpinBox *mColumns = nullptr;
QSpinBox *mRows = nullptr;
QSpinBox *mBorder = nullptr;
QSpinBox *mLength = nullptr;
KComboBox *mTypeOfLength = nullptr;
InsertTableWidget *q;
InsertTableWidget *q = nullptr;
};
InsertTableWidget::InsertTableWidget(QWidget *parent)
......
......@@ -63,10 +63,10 @@ public:
void _k_slotInsertChar();
KCharSelect *mCharSelect;
QDialogButtonBox *mButtonBox;
QPushButton *mSelectButton;
SelectSpecialCharDialog *q;
KCharSelect *mCharSelect = nullptr;
QDialogButtonBox *mButtonBox = nullptr;
QPushButton *mSelectButton = nullptr;
SelectSpecialCharDialog *q = nullptr;
};
void SelectSpecialCharDialogPrivate::_k_slotInsertChar()
......
......@@ -62,32 +62,32 @@ public:
void _k_slotSplitCell();
void _k_updateActions(bool forceUpdate = false);
QAction *actionInsertTable;
QAction *actionInsertTable = nullptr;
QAction *actionInsertRowBelow;
QAction *actionInsertRowAbove;
QAction *actionInsertRowBelow = nullptr;
QAction *actionInsertRowAbove = nullptr;
QAction *actionInsertColumnBefore;
QAction *actionInsertColumnAfter;
QAction *actionInsertColumnBefore = nullptr;
QAction *actionInsertColumnAfter = nullptr;
QAction *actionRemoveRowBelow;
QAction *actionRemoveRowAbove;
QAction *actionRemoveRowBelow = nullptr;
QAction *actionRemoveRowAbove = nullptr;
QAction *actionRemoveColumnBefore;
QAction *actionRemoveColumnAfter;
QAction *actionRemoveColumnBefore = nullptr;
QAction *actionRemoveColumnAfter = nullptr;
QAction *actionMergeCell;
QAction *actionMergeSelectedCells;
QAction *actionSplitCell;
QAction *actionMergeCell = nullptr;
QAction *actionMergeSelectedCells = nullptr;
QAction *actionSplitCell = nullptr;
QAction *actionTableFormat;
QAction *actionTableCellFormat;
QAction *actionTableFormat = nullptr;
QAction *actionTableCellFormat = nullptr;
QAction *actionRemoveCellContents;
QAction *actionRemoveCellContents = nullptr;
QTextEdit *textEdit;
TableActionMenu *q;
bool richTextMode;
QTextEdit *textEdit = nullptr;
TableActionMenu *q = nullptr;
bool richTextMode = false;
};
void TableActionMenuPrivate::_k_slotRemoveCellContents()
......
......@@ -77,11 +77,11 @@ public:
mainLayout->addWidget(buttonBox);
}
QCheckBox *useBackgroundColor;
QCheckBox *useBackgroundColor = nullptr;
KColorButton *backgroundColor;
KComboBox *verticalAlignment;
TableCellFormatDialog *q;
KColorButton *backgroundColor = nullptr;
KComboBox *verticalAlignment = nullptr;
TableCellFormatDialog *q = nullptr;
};
TableCellFormatDialog::TableCellFormatDialog(QWidget *parent)
......
......@@ -114,13 +114,13 @@ public:
mainLayout->addWidget(buttonBox);
}
QCheckBox *useBackgroundColor;
KColorButton *backgroundColor;
KComboBox *alignment;
QSpinBox *spacing;
QSpinBox *padding;
KPIMTextEdit::InsertTableWidget *tableWidget;
TableFormatDialog *q;
QCheckBox *useBackgroundColor = nullptr;
KColorButton *backgroundColor = nullptr;
KComboBox *alignment = nullptr;
QSpinBox *spacing = nullptr;
QSpinBox *padding = nullptr;
KPIMTextEdit::InsertTableWidget *tableWidget = nullptr;
TableFormatDialog *q = nullptr;
};
TableFormatDialog::TableFormatDialog(QWidget *parent)
......
......@@ -38,10 +38,10 @@ public:
{
}
KPIMTextEdit::PlainTextEditFindBar *mFindBar;
PlainTextEditor *mEditor;
KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget;
KPIMTextEdit::SlideContainer *mSliderContainer;
KPIMTextEdit::PlainTextEditFindBar *mFindBar = nullptr;
PlainTextEditor *mEditor = nullptr;
KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr;
KPIMTextEdit::SlideContainer *mSliderContainer = nullptr;
};
PlainTextEditorWidget::PlainTextEditorWidget(PlainTextEditor *customEditor, QWidget *parent)
......
......@@ -35,9 +35,9 @@ public:
}
QVector<KPIMTextEdit::Rule> rules;
PlainTextEditor *editor;
PlainTextEditor *editor = nullptr;
QColor misspelledColor;
bool spellCheckingEnabled;
bool spellCheckingEnabled = false;
};
PlainTextSyntaxSpellCheckingHighlighter::PlainTextSyntaxSpellCheckingHighlighter(PlainTextEditor *plainText, const QColor &misspelledColor)
......
......@@ -36,7 +36,7 @@ public:
{
}
QTextEdit *mView;
QTextEdit *mView = nullptr;
};
RichTextEditFindBar::RichTextEditFindBar(QTextEdit *view, QWidget *parent)
......
......@@ -85,14 +85,14 @@ public:
}
QStringList ignoreSpellCheckingWords;
RichTextEditor *q;
KPIMTextEdit::TextMessageIndicator *textIndicator;
RichTextEditor *q = nullptr;
KPIMTextEdit::TextMessageIndicator *textIndicator = nullptr;
QString spellCheckingConfigFileName;
QString spellCheckingLanguage;
QTextDocumentFragment originalDoc;
Sonnet::SpellCheckDecorator *richTextDecorator;
Sonnet::Speller *speller;
KIO::KUriFilterSearchProviderActions *webshortcutMenuManager;
Sonnet::SpellCheckDecorator *richTextDecorator = nullptr;
Sonnet::Speller *speller = nullptr;
KIO::KUriFilterSearchProviderActions *webshortcutMenuManager = nullptr;
RichTextEditor::SupportFeatures supportFeatures;
int mInitialFontSize;
bool customPalette;
......
......@@ -33,17 +33,13 @@ class KPIMTextEdit::RichTextEditorWidgetPrivate
{
public:
RichTextEditorWidgetPrivate()
: mFindBar(nullptr)
, mEditor(nullptr)
, mTextToSpeechWidget(nullptr)
, mSliderContainer(nullptr)
{
}
KPIMTextEdit::RichTextEditFindBar *mFindBar;
RichTextEditor *mEditor;
KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget;
KPIMTextEdit::SlideContainer *mSliderContainer;
KPIMTextEdit::RichTextEditFindBar *mFindBar = nullptr;
RichTextEditor *mEditor = nullptr;
KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr;
KPIMTextEdit::SlideContainer *mSliderContainer = nullptr;
};
RichTextEditorWidget::RichTextEditorWidget(RichTextEditor *customEditor, QWidget *parent)
......
......@@ -51,10 +51,10 @@ public:
void createCompleter();
void completeText();
QString excludeOfCharacters;
QCompleter *completer;
QPlainTextEdit *plainTextEdit;
QTextEdit *textEdit;
TextEditorCompleter *q;
QCompleter *completer = nullptr;
QPlainTextEdit *plainTextEdit = nullptr;
QTextEdit *textEdit = nullptr;
TextEditorCompleter *q = nullptr;
};
void TextEditorCompleter::TextEditorCompleterPrivate::createCompleter()
......
......@@ -33,7 +33,7 @@ private Q_SLOTS:
void slotTextToSpeech();
private:
QTextEdit *mEdit;
QTextEdit *mEdit = nullptr;
};
#endif // TEXTTOSPEECHGUI_H
......@@ -27,16 +27,13 @@ class KPIMTextEdit::TextToSpeechActionsPrivate
{
public:
TextToSpeechActionsPrivate()
: mState(TextToSpeechWidget::Stop)
, mStopAction(nullptr)
, mPlayPauseAction(nullptr)
{
}
void updateButtonState();
TextToSpeechWidget::State mState;
QAction *mStopAction;
QAction *mPlayPauseAction;
TextToSpeechWidget::State mState = TextToSpeechWidget::Stop;
QAction *mStopAction = nullptr;
QAction *mPlayPauseAction = nullptr;
};
TextToSpeechActions::TextToSpeechActions(QObject *parent)
......
......@@ -30,7 +30,7 @@ public:
{
}
TextToSpeechWidget *mTextToSpeechWidget;
TextToSpeechWidget *mTextToSpeechWidget = nullptr;
};
TextToSpeechInterface::TextToSpeechInterface(TextToSpeechWidget *textToSpeechWidget, QObject *parent)
......
......@@ -44,14 +44,14 @@ public:
{
}
bool mNeedToHide;
bool mNeedToHide = false;
QPointer<KPIMTextEdit::TextToSpeechConfigDialog> mConfigDialog;
QToolButton *mStopButton;
QToolButton *mPlayPauseButton;
QToolButton *mConfigureButton;
AbstractTextToSpeechInterface *mTextToSpeechInterface;
TextToSpeechActions *mTextToSpeechActions;
QSlider *mVolume;
QToolButton *mStopButton = nullptr;
QToolButton *mPlayPauseButton = nullptr;
QToolButton *mConfigureButton = nullptr;
AbstractTextToSpeechInterface *mTextToSpeechInterface = nullptr;
TextToSpeechActions *mTextToSpeechActions = nullptr;
QSlider *mVolume = nullptr;
};
TextToSpeechWidget::TextToSpeechWidget(QWidget *parent)
......
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