Display a window title when the viewer starts empty.
This commit is contained in:
parent
abee13d669
commit
56883db08e
|
@ -584,7 +584,7 @@ namespace Hurricane {
|
|||
|
||||
void CellViewer::refreshTitle ()
|
||||
{
|
||||
QString cellName = "None";
|
||||
QString cellName = "empty";
|
||||
if ( getCell() )
|
||||
cellName = getString(getCell()->getName()).c_str();
|
||||
|
||||
|
|
|
@ -219,6 +219,7 @@ extern "C" {
|
|||
}
|
||||
|
||||
cw->setApplicationName ( name );
|
||||
cw->refreshTitle ();
|
||||
HCATCH
|
||||
|
||||
Py_RETURN_NONE;
|
||||
|
|
|
@ -87,6 +87,7 @@ namespace Hurricane {
|
|||
CellViewer ( QWidget* parent=NULL );
|
||||
virtual ~CellViewer ();
|
||||
inline bool isToolInterrupted () const;
|
||||
void refreshTitle ();
|
||||
QMenu* createDebugMenu ();
|
||||
bool hasMenu ( const QString& path ) const;
|
||||
bool hasMenuAction ( const QString& path ) const;
|
||||
|
@ -166,7 +167,6 @@ namespace Hurricane {
|
|||
void cellPostModificated ();
|
||||
protected:
|
||||
void createMenus ();
|
||||
void refreshTitle ();
|
||||
void refreshHistory ();
|
||||
void rebuildHistory ();
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue