diff --git a/src/apps/todo.cpp b/src/apps/todo.cpp index 0fa36df..f1d489c 100644 --- a/src/apps/todo.cpp +++ b/src/apps/todo.cpp @@ -437,3 +437,13 @@ void todo::resize() { this->setGeometry(QRect(QPoint(0,0), qApp->primaryScreen()->geometry().size())); this->repaint(); } + +void todo::on_itemsListWidget_itemClicked(QListWidgetItem *item) +{ + if(item->checkState() == Qt::Unchecked) { + item->setCheckState(Qt::Checked); + } + else { + item->setCheckState(Qt::Unchecked); + } +} diff --git a/src/apps/todo.h b/src/apps/todo.h index 5ff622c..770a9b3 100644 --- a/src/apps/todo.h +++ b/src/apps/todo.h @@ -55,6 +55,7 @@ private slots: void on_deselectAllItemsBtn_clicked(); void on_saveCurrentListViewBtn_clicked(); void on_editItemBtn_clicked(); + void on_itemsListWidget_itemClicked(QListWidgetItem *item); signals: void showToast(QString messageToDisplay); diff --git a/src/settings/settings.cpp b/src/settings/settings.cpp index 5659211..9d92ac4 100644 --- a/src/settings/settings.cpp +++ b/src/settings/settings.cpp @@ -60,15 +60,20 @@ settings::settings(QWidget *parent) : ui->repackBtn->setStyleSheet("font-size: 9pt"); ui->exportHighlightsBtn->setStyleSheet("font-size: 9pt"); ui->uiScaleNumberLabel->setStyleSheet("font-size: 9pt; font-weight: bold"); + if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "kt\n") { + ui->previousBtn->setStyleSheet("padding: 7.5px;"); + ui->nextBtn->setStyleSheet("padding: 7.5px;"); + } + else { + ui->previousBtn->setStyleSheet("padding: 10px;"); + ui->nextBtn->setStyleSheet("padding: 10px"); + } ui->previousBtn->setText(""); ui->previousBtn->setIcon(QIcon(":/resources/chevron-left.png")); ui->nextBtn->setText(""); ui->nextBtn->setIcon(QIcon(":/resources/chevron-right.png")); - ui->nextBtn->setFixedWidth(100); - ui->previousBtn->setFixedWidth(100); - ui->requestLeaseBtn->hide(); ui->usbmsBtn->hide(); ui->label_3->hide(); @@ -573,14 +578,6 @@ void settings::on_nextBtn_clicked() } } -void settings::on_wordsNumber_valueChanged(int arg1) -{ - QString number = QString::number(arg1); - string number_str = number.toStdString(); - string_writeconfig(".config/07-words_number/config", number_str); - log("Set text files words number to " + number, className); -} - void settings::on_updateBtn_clicked() { log("'Update' button clicked", className); diff --git a/src/settings/settings.h b/src/settings/settings.h index 95adccc..dac885e 100644 --- a/src/settings/settings.h +++ b/src/settings/settings.h @@ -41,7 +41,6 @@ private slots: void on_usbmsBtn_clicked(); void on_previousBtn_clicked(); void on_nextBtn_clicked(); - void on_wordsNumber_valueChanged(int arg1); void on_updateBtn_clicked(); void on_darkModeCheckBox_toggled(bool checked); void on_uiScalingSlider_valueChanged(int value); @@ -82,11 +81,11 @@ signals: void closeIndefiniteToast(); private: - Ui::settings *ui; - usbmsSplash *usbmsWindow; - generalDialog *generalDialogWindow; - otaManager *otaManagerWindow; - toast *toastWindow; + Ui::settings * ui; + usbmsSplash * usbmsWindow; + generalDialog * generalDialogWindow; + otaManager * otaManagerWindow; + toast * toastWindow; int pageSizeHeightSaved; int pageSizeWidthSaved; diff --git a/src/widgets/dialogs/reader/highlightslistdialog.cpp b/src/widgets/dialogs/reader/highlightslistdialog.cpp index 6b81015..91579dd 100644 --- a/src/widgets/dialogs/reader/highlightslistdialog.cpp +++ b/src/widgets/dialogs/reader/highlightslistdialog.cpp @@ -111,3 +111,13 @@ void highlightsListDialog::on_selectAllBtn_clicked() ui->listWidget->item(i)->setCheckState(Qt::Checked); } } + +void highlightsListDialog::on_listWidget_itemClicked(QListWidgetItem *item) +{ + if(item->checkState() == Qt::Unchecked) { + item->setCheckState(Qt::Checked); + } + else { + item->setCheckState(Qt::Unchecked); + } +} diff --git a/src/widgets/dialogs/reader/highlightslistdialog.h b/src/widgets/dialogs/reader/highlightslistdialog.h index fb7aaf8..3831260 100644 --- a/src/widgets/dialogs/reader/highlightslistdialog.h +++ b/src/widgets/dialogs/reader/highlightslistdialog.h @@ -2,6 +2,7 @@ #define HIGHLIGHTSLISTDIALOG_H #include +#include #include "functions.h" @@ -23,6 +24,7 @@ private slots: void on_cancelBtn_clicked(); void on_okBtn_clicked(); void on_selectAllBtn_clicked(); + void on_listWidget_itemClicked(QListWidgetItem *item); signals: void showToast(QString messageToDisplay);