Internal version number to 0.3.0
Fix for the bug that left selection dependent buttons on when the last
timer was removed from the list
#include <QSettings>
#include <QFileDialog>
#include <QSettings>
#include <QFileDialog>
+ const QString defaultSaveDirectory_ = "/home/user/MyDocs/KitchenAlert/";
KitchenAlertMainWindow::KitchenAlertMainWindow(QWidget *parent) :
KitchenAlertMainWindow::KitchenAlertMainWindow(QWidget *parent) :
ui(new Ui::KitchenAlertMainWindow)
{
ui(new Ui::KitchenAlertMainWindow)
{
- defaultSaveDirectory_ = "/home/user/MyDocs/KitchenAlert/";
-
ui->setupUi(this);
setWindowIcon(QIcon(":/kitchenalert.png"));
ui->setupUi(this);
setWindowIcon(QIcon(":/kitchenalert.png"));
if (QMessageBox::question(this,tr("Confirm timer removal"),text,QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes)
{
model_.removeTimer(row);
if (QMessageBox::question(this,tr("Confirm timer removal"),text,QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes)
{
model_.removeTimer(row);
+ ui->ComingAlertsTableView->clearSelection();
+ disableSelectionDependentButtons();
+
- ui->SnoozeButton->setDisabled(true);
}
void KitchenAlertMainWindow::saveTimer()
}
void KitchenAlertMainWindow::saveTimer()
/*! The main window class of KitchenAlert'
@author Heli Hyvättinen
/*! The main window class of KitchenAlert'
@author Heli Hyvättinen
@version 0.3.0
Operates the UI.
@version 0.3.0
Operates the UI.
CurrentAlertsTableModel model_; /*! The model that stores the alerts */
CurrentAlertsTableModel model_; /*! The model that stores the alerts */
- QString defaultSaveDirectory_;
+ const QString defaultSaveDirectory_;
/*!
Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected.
/*!
Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected.
{
QApplication a(argc, argv);
a.setApplicationName("KitchenAlert"); //a name is required to connect to DBus
{
QApplication a(argc, argv);
a.setApplicationName("KitchenAlert"); //a name is required to connect to DBus
- a.setApplicationVersion("0.2.1");
+ a.setApplicationVersion("0.3.0");
a.setOrganizationName("KitchenAlert");
KitchenAlertMainWindow w;
#if defined(Q_WS_S60)
a.setOrganizationName("KitchenAlert");
KitchenAlertMainWindow w;
#if defined(Q_WS_S60)