#include <overwritedialog.h>
Used by CodeGenerator::findFileName when it needs to ask the user if they want to overwrite and existing file, generate a similar name or cancel. Gives an option to apply the choice to all remaining files.
Uses OK and Apply buttons but overrides their text and behaviour, probably better to use user defined buttons but I couldn't work out how.
- Author
- Jonathan Riddell jr@jr.nosp@m.idde.nosp@m.ll.or.nosp@m.g Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
◆ OverwriteDialog()
OverwriteDialog::OverwriteDialog |
( |
const QString & |
fileName, |
|
|
const QString & |
outputDirectory, |
|
|
bool |
applyToAllRemaining, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Constructor sets up the dialog, adding checkbox and label.
◆ ~OverwriteDialog()
OverwriteDialog::~OverwriteDialog |
( |
| ) |
|
◆ applyToAllRemaining()
bool OverwriteDialog::applyToAllRemaining |
( |
| ) |
|
- Returns
- the value of the Apply To All Remaining Files checkbox
◆ m_applyToAllRemaining
QCheckBox* OverwriteDialog::m_applyToAllRemaining |
|
private |
The documentation for this class was generated from the following files: