Mercurial > hg > octave-lyh
comparison gui/src/FilesDockWidget.cpp @ 13549:807e5e9b7591
Added lots of status tips.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 27 Jul 2011 12:10:59 +0200 |
parents | a4b5cad8f7c6 |
children | e440b3f32f02 |
comparison
equal
deleted
inserted
replaced
13548:5c2ea445e100 | 13549:807e5e9b7591 |
---|---|
41 // Add a button to the toolbar with the QT standard icon for up-directory | 41 // Add a button to the toolbar with the QT standard icon for up-directory |
42 // TODO: Maybe change this to be an up-directory icon that is OS specific??? | 42 // TODO: Maybe change this to be an up-directory icon that is OS specific??? |
43 QStyle *style = QApplication::style (); | 43 QStyle *style = QApplication::style (); |
44 m_directoryIcon = style->standardIcon (QStyle::SP_FileDialogToParent); | 44 m_directoryIcon = style->standardIcon (QStyle::SP_FileDialogToParent); |
45 m_directoryUpAction = new QAction (m_directoryIcon, "", m_navigationToolBar); | 45 m_directoryUpAction = new QAction (m_directoryIcon, "", m_navigationToolBar); |
46 m_directoryUpAction->setStatusTip (tr ("Move up one directory.")); | |
47 | |
46 m_currentDirectory = new QLineEdit (m_navigationToolBar); | 48 m_currentDirectory = new QLineEdit (m_navigationToolBar); |
49 m_currentDirectory->setStatusTip (tr ("Enter the path or filename.")); | |
47 | 50 |
48 m_navigationToolBar->addAction (m_directoryUpAction); | 51 m_navigationToolBar->addAction (m_directoryUpAction); |
49 m_navigationToolBar->addWidget (m_currentDirectory); | 52 m_navigationToolBar->addWidget (m_currentDirectory); |
50 connect (m_directoryUpAction, SIGNAL (triggered ()), this, | 53 connect (m_directoryUpAction, SIGNAL (triggered ()), this, |
51 SLOT (onUpDirectory ())); | 54 SLOT (onUpDirectory ())); |
70 m_fileTreeView->setAlternatingRowColors (true); | 73 m_fileTreeView->setAlternatingRowColors (true); |
71 m_fileTreeView->setAnimated (true); | 74 m_fileTreeView->setAnimated (true); |
72 m_fileTreeView->setColumnHidden (1, true); | 75 m_fileTreeView->setColumnHidden (1, true); |
73 m_fileTreeView->setColumnHidden (2, true); | 76 m_fileTreeView->setColumnHidden (2, true); |
74 m_fileTreeView->setColumnHidden (3, true); | 77 m_fileTreeView->setColumnHidden (3, true); |
78 m_fileTreeView->setStatusTip (tr ("Doubleclick a file to open it.")); | |
79 | |
75 setCurrentDirectory (m_fileSystemModel->fileInfo (rootPathIndex). | 80 setCurrentDirectory (m_fileSystemModel->fileInfo (rootPathIndex). |
76 absoluteFilePath ()); | 81 absoluteFilePath ()); |
77 | 82 |
78 connect (m_fileTreeView, SIGNAL (doubleClicked (const QModelIndex &)), this, | 83 connect (m_fileTreeView, SIGNAL (doubleClicked (const QModelIndex &)), this, |
79 SLOT (itemDoubleClicked (const QModelIndex &))); | 84 SLOT (itemDoubleClicked (const QModelIndex &))); |