core: added shortcut to set status bar message
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
#include "widget/menu/menushared.h"
|
||||
#include "widget/taskview/taskviewitem.h"
|
||||
#include "widget/viewer/viewer.h"
|
||||
#include "window/mainwindow/mainstatusbar.h"
|
||||
#include "window/mainwindow/mainwindow.h"
|
||||
|
||||
namespace olive {
|
||||
@@ -936,6 +937,11 @@ bool Core::SaveProject(Project* p)
|
||||
}
|
||||
}
|
||||
|
||||
void Core::ShowStatusBarMessage(const QString &s)
|
||||
{
|
||||
main_window_->statusBar()->showMessage(s);
|
||||
}
|
||||
|
||||
bool Core::SaveProjectAs(Project* p)
|
||||
{
|
||||
QFileDialog fd(main_window_, tr("Save Project As"));
|
||||
|
||||
@@ -291,6 +291,13 @@ public:
|
||||
*/
|
||||
bool SaveProject(Project *p);
|
||||
|
||||
/**
|
||||
* @brief Show message in main window's status bar
|
||||
*
|
||||
* Shorthand for Core::instance()->main_window()->statusBar()->showMessage();
|
||||
*/
|
||||
void ShowStatusBarMessage(const QString& s);
|
||||
|
||||
static const uint kProjectVersion;
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user