git-svn-id: svn://db.shs.com.ru/libs@359 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -18,6 +18,7 @@ CDPultWindow::CDPultWindow(QWidget *parent) : EMainWindow(parent), ui(new Ui::CD
|
||||
log_icons[WaitIcon] = QIcon("://icons/timer.png");
|
||||
ui->setupUi(this);
|
||||
centralWidget()->hide();
|
||||
setRecentMenu(ui->menuOpen_recent);
|
||||
ribbon = new Ribbon(this);
|
||||
session.setFile("session_cdpult.conf");
|
||||
session.addEntry(this);
|
||||
@@ -101,6 +102,16 @@ bool CDPultWindow::save(const QString & path) {
|
||||
}
|
||||
|
||||
|
||||
void CDPultWindow::loadingSession(QPIConfig & conf) {
|
||||
setRecentFiles(conf.getValue("recent files", QStringList()));
|
||||
}
|
||||
|
||||
|
||||
void CDPultWindow::savingSession(QPIConfig & conf) {
|
||||
conf.setValue("recent files", recentFiles());
|
||||
}
|
||||
|
||||
|
||||
void CDPultWindow::addToLog(LogIcon icon, const QString & msg) {
|
||||
QListWidgetItem * ni = new QListWidgetItem(log_icons[icon], "(" + QTime::currentTime().toString() + ") " + msg);
|
||||
bool s = ui->listLog->verticalScrollBar()->value() == ui->listLog->verticalScrollBar()->maximum();
|
||||
|
||||
Reference in New Issue
Block a user