kdeui: remove empty KReplaceDialog code examples

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-29 05:54:22 +03:00
parent 01d26adc48
commit aaeaa0a20c

View file

@ -37,29 +37,12 @@ class KReplaceDialogPrivate;
* the following additional functionalities: a replacement string * the following additional functionalities: a replacement string
* object and an area for a user-defined widget to extend the dialog. * object and an area for a user-defined widget to extend the dialog.
* *
* \b Example:
*
* To use the basic replace dialog:
*
* \code
* \endcode
*
* To use your own extensions:
*
* \code
* \endcode
*
* \image html kreplacedialog.png "KDE Replace Dialog" * \image html kreplacedialog.png "KDE Replace Dialog"
*/ */
class KDEUI_EXPORT KReplaceDialog: class KDEUI_EXPORT KReplaceDialog : public KFindDialog
public KFindDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
// Options.
enum Options enum Options
{ {
// Should the user be prompted before the replace operation? // Should the user be prompted before the replace operation?
@ -78,10 +61,10 @@ public:
* replace with * replace with
* @param hasSelection Whether a selection exists * @param hasSelection Whether a selection exists
*/ */
explicit KReplaceDialog( QWidget *parent = 0, long options = 0, explicit KReplaceDialog(QWidget *parent = 0, long options = 0,
const QStringList &findStrings = QStringList(), const QStringList &findStrings = QStringList(),
const QStringList &replaceStrings = QStringList(), const QStringList &replaceStrings = QStringList(),
bool hasSelection = true ); bool hasSelection = true);
/** /**
* Destructor. * Destructor.
@ -96,7 +79,7 @@ public:
* @param history The replacement history. * @param history The replacement history.
* @see replacementHistory * @see replacementHistory
*/ */
void setReplacementHistory( const QStringList &history ); void setReplacementHistory(const QStringList &history);
/** /**
* Returns the list of history items. * Returns the list of history items.
@ -110,7 +93,7 @@ public:
* *
* @param options The setting of the Options. * @param options The setting of the Options.
*/ */
void setOptions( long options ); void setOptions(long options);
/** /**
* Returns the state of the options. Disabled options may be returned in * Returns the state of the options. Disabled options may be returned in
@ -134,13 +117,11 @@ public:
QWidget *replaceExtension() const; QWidget *replaceExtension() const;
protected: protected:
virtual void showEvent( QShowEvent * ); virtual void showEvent(QShowEvent *e);
private: private:
KReplaceDialogPrivate* const d; KReplaceDialogPrivate* const d;
Q_PRIVATE_SLOT(d, void _k_slotOk())
Q_PRIVATE_SLOT( d, void _k_slotOk() )
}; };
#endif // KREPLACEDIALOG_H #endif // KREPLACEDIALOG_H