Commit a281d922 authored by Cole Neubauer's avatar Cole Neubauer
Browse files

Renamed Save As dialog box buttons Fixes #4894

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@7829 41f8697f-d340-4b68-9986-7bafba869bb8
parent 152f8e5a
Loading
Loading
Loading
Loading
+34 −33
Original line number Diff line number Diff line
@@ -22,17 +22,17 @@ namespace Isis {
   * @param pParent     - Parent widget
   */
  SaveAsDialog::SaveAsDialog(QString pTitle, QStringList &pFilterList, QDir &pDir, QWidget *pParent) :
    FileDialog(pTitle, pFilterList, pDir, pParent), p_dir(pDir) {
    FileDialog(pTitle, pFilterList, pDir, pParent), p_dir(pDir)
    {

    this->setFileMode(QFileDialog::AnyFile);

    // This returns a list of all the buttons in QFileDialog
    QList<QPushButton *> allPButtons = this->findChildren<QPushButton *>();
    // Edit the first (Open) button title.
    allPButtons[0]->setText("&Save");

    // Edit the first (Open) button title.
    this->setLabelText(QFileDialog::Accept, "Save");
    /// Edit the second (Cancel) button title.
    allPButtons[1]->setText("Close");
    this->setLabelText(QFileDialog::Reject, "Cancel");

    p_saveAsType = FullImage;
    QHBoxLayout *hBoxLayout = new QHBoxLayout;
@@ -73,6 +73,7 @@ namespace Isis {
    dialogLayout->addItem(hBoxLayout);
    dialogLayout->setAlignment(hBoxLayout, Qt::AlignLeft );
    setLayout(dialogLayout);

  }

  /**