Skip to content

Commit

Permalink
Remove code commented-out code in the last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
netterfield committed Apr 19, 2017
1 parent 318bfc3 commit c0b2a41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
22 changes: 0 additions & 22 deletions src/libkstapp/exportgraphicsdialog.cpp
Expand Up @@ -31,8 +31,6 @@ ExportGraphicsDialog::ExportGraphicsDialog(MainWindow *parent)

_saveLocation->setFile(dialogDefaults().value("export/filename",QDir::currentPath()).toString());

//_autoSaveTimer = new QTimer(this);

_listVectorFormats->setChecked(dialogDefaults().value("export/useVectors",true).toBool());
_listBitmapFormats->setChecked(dialogDefaults().value("export/useBitmaps",true).toBool());

Expand All @@ -46,7 +44,6 @@ ExportGraphicsDialog::ExportGraphicsDialog(MainWindow *parent)

_saveLocationLabel->setBuddy(_saveLocation->_fileEdit);

//connect(_autoSaveTimer, SIGNAL(timeout()), this, SLOT(createFile()));
connect(_comboBoxSizeOption, SIGNAL(currentIndexChanged(int)), this, SLOT(enableWidthHeight()));

connect(_buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject()));
Expand Down Expand Up @@ -152,25 +149,6 @@ void ExportGraphicsDialog::enableWidthHeight() {
}


/*
void ExportGraphicsDialog::applyAutosave() {
if (_autosave->isChecked()) {
_autoSaveTimer->start(_period->value()*1000);
} else {
_autoSaveTimer->stop();
}
}
void ExportGraphicsDialog::apply() {
applyAutosave();
if (!_autosave->isChecked()) {
createFile();
}
}
*/

void ExportGraphicsDialog::apply() {
int autosave_period = 0;
QString filename = _saveLocation->file();
Expand Down
3 changes: 0 additions & 3 deletions src/libkstapp/exportgraphicsdialog.h
Expand Up @@ -32,11 +32,9 @@ class ExportGraphicsDialog : public QDialog, Ui::ExportGraphicsDialog
bool exportAll() { return _exportAll->isChecked();}

public slots:
// void createFile();
void enableWidthHeight();
void OKClicked();
void apply();
// void applyAutosave();
void updateButtons();
void updateFormats();
void updateFilenameLabel();
Expand All @@ -45,7 +43,6 @@ class ExportGraphicsDialog : public QDialog, Ui::ExportGraphicsDialog
void exportGraphics(const QString &filename, const QString &format, int w, int h, int display, bool export_all, int autosave_period);

private:
// QTimer *_autoSaveTimer;
};

}
Expand Down

0 comments on commit c0b2a41

Please sign in to comment.