Skip to content

Commit

Permalink
Online manual menu now same on all
Browse files Browse the repository at this point in the history
  • Loading branch information
alanspencer committed Oct 25, 2018
1 parent 74d1125 commit a982c50
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 23 deletions.
10 changes: 1 addition & 9 deletions SPIERSalign/src/mainwindowimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4508,7 +4508,7 @@ void MainWindowImpl::on_actionCompress_Dataset_triggered()
*/
void MainWindowImpl::on_actionManual_triggered()
{
QDesktopServices::openUrl(QUrl("file:" + qApp->applicationDirPath() + "/SPIERSalign_Manual.pdf"));
QDesktopServices::openUrl(QUrl(QString(READTHEDOCS)));
}

/**
Expand All @@ -4526,11 +4526,3 @@ void MainWindowImpl::on_actionCode_on_GitHub_triggered()
{
QDesktopServices::openUrl(QUrl(QString(GITURL) + QString(GITREPOSITORY)));
}

/**
* @brief MainWindowImpl::on_actionOnline_User_Manual_triggered
*/
void MainWindowImpl::on_actionOnline_User_Manual_triggered()
{
QDesktopServices::openUrl(QUrl(QString(READTHEDOCS)));
}
2 changes: 0 additions & 2 deletions SPIERSalign/src/mainwindowimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ private slots:
void resizeCropH(int value);
void clearList();

void on_actionOnline_User_Manual_triggered();

private:
void rotate (qreal rotateAngle);
void resize(qreal sizeChange);
Expand Down
13 changes: 6 additions & 7 deletions SPIERSalign/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<x>0</x>
<y>0</y>
<width>598</width>
<height>21</height>
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="menuDsvdsvdasv">
Expand Down Expand Up @@ -139,7 +139,6 @@
<string>Help</string>
</property>
<addaction name="actionManual"/>
<addaction name="actionOnline_User_Manual"/>
<addaction name="actionCode_on_GitHub"/>
<addaction name="actionBugIssueFeatureRequest"/>
<addaction name="separator"/>
Expand Down Expand Up @@ -937,13 +936,13 @@
</action>
<action name="actionManual">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>Manual</string>
<string>Online Manual</string>
</property>
<property name="visible">
<bool>false</bool>
<bool>true</bool>
</property>
</action>
<action name="actionBugIssueFeatureRequest">
Expand All @@ -956,9 +955,9 @@
<string>Code on GitHub</string>
</property>
</action>
<action name="actionOnline_User_Manual">
<action name="action_Manual">
<property name="text">
<string>Online User Manual</string>
<string>Online Manual</string>
</property>
</action>
</widget>
Expand Down
4 changes: 2 additions & 2 deletions SPIERSedit/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
<x>0</x>
<y>0</y>
<width>962</width>
<height>21</height>
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
Expand Down Expand Up @@ -4109,7 +4109,7 @@ Interpreted Images:</string>
</action>
<action name="actionManual">
<property name="text">
<string>Manual</string>
<string>Online Manual</string>
</property>
</action>
<action name="actionGrey_out_curves_not_no_current_slice">
Expand Down
3 changes: 1 addition & 2 deletions SPIERSview/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3181,8 +3181,7 @@ void MainWindow::on_actionBackground_Colour_triggered()
*/
void MainWindow::on_actionManual_triggered()
{
//qDebug()<<qApp->applicationDirPath() + "/SPIERSview_Manual.pdf";
QDesktopServices::openUrl(QUrl("file:" + qApp->applicationDirPath() + "/SPIERSview_Manual.pdf", QUrl::TolerantMode));
QDesktopServices::openUrl(QUrl(QString(READTHEDOCS)));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion SPIERSview/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@
</action>
<action name="actionManual">
<property name="text">
<string>Manual</string>
<string>Online Manual</string>
</property>
</action>
<action name="actionQuick_Guide">
Expand Down

0 comments on commit a982c50

Please sign in to comment.