Added icon for motif toggle.
authorBrandon King <kingb@caltech.edu>
Mon, 27 Feb 2006 21:54:45 +0000 (21:54 +0000)
committerBrandon King <kingb@caltech.edu>
Mon, 27 Feb 2006 21:54:45 +0000 (21:54 +0000)
icons/motif_icon.png [new file with mode: 0644]
qui/PathWindow.cxx

diff --git a/icons/motif_icon.png b/icons/motif_icon.png
new file mode 100644 (file)
index 0000000..29b7db3
Binary files /dev/null and b/icons/motif_icon.png differ
index 279fa5637a9b1575763f62eb362565197b1a0074..fb2f9e2326cde8a064ddee71f9d5db61f9d5b426 100644 (file)
@@ -3,6 +3,7 @@
 #include <QAction>
 #include <QDir>
 #include <QFileDialog>
+#include <QIcon>
 #include <QMenuBar>
 #include <QMessageBox>
 #include <QStatusBar>
@@ -82,6 +83,9 @@ void PathWindow::setupActions()
   toggleMotifsAction = new QAction(tr("Toggle Motifs"), this);
   connect(toggleMotifsAction, SIGNAL(triggered()), 
           this, SLOT(toggleMotifs()));
+
+  toggleMotifsAction->setCheckable(true);
+  toggleMotifsAction->setIcon(QIcon("icons/motif_icon.png"));
 }
 
 void PathWindow::setupMainMenu()