Commit 9dcd6343 authored by Summer Stapleton's avatar Summer Stapleton
Browse files

Stripped path from displayed filename in ControlPointEditorView and set full...

Stripped path from displayed filename in ControlPointEditorView and set full pathname to tooltip to allow for better readability
parent f8f5c0d3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -589,7 +589,11 @@ namespace Isis {
    m_controlNet = control->controlNet();
    m_cnetFileName = control->fileName();

    m_cnetFileNameLabel->setText("Control Network: " + m_cnetFileName);
    QStringList cnetDirs = m_cnetFileName.split('/');
    QString strippedCnetFilename = cnetDirs.value(cnetDirs.length() -1);
    m_cnetFileNameLabel->setText("Control Network: " + strippedCnetFilename);
    m_cnetFileNameLabel->setToolTip(m_cnetFileName);
    m_cnetFileNameLabel->setWhatsThis(m_cnetFileName);
    setWindowTitle("Control Point Editor- Control Network File: " + m_cnetFileName);

    emit newControlNetwork(m_controlNet);
+2 −0
Original line number Diff line number Diff line
@@ -90,6 +90,8 @@ namespace Isis {
   *                           Fixes #5399.
   *   @history 2018-05-02 Tracie Sucharski - Colorize save buttons properly when creating new
   *                           control point and loading a different control point. 
   *   @history 2018-06-11 Summer Stapleton - Stripped path from displayed filename of Control 
   *                           Network and set the tooltip to the full path for easier access.
   */
  class ControlPointEditWidget : public QWidget {
    Q_OBJECT