diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -29,9 +29,12 @@ See: [Building and Deploying] ## Importing AtCore in your CMakeList -CMake should find AtCore using the following in your CMakeLists +CMake should find %AtCore and link it to MYAPP using the following in your CMakeLists ```CMake include (AtCore REQUIRED COMPONATES AtCore ) +include (AtCore REQUIRED COMPONATES AtCoreWidgets ) +... +target_link_libraries(MYAPP AtCore::AtCore AtCore::AtCoreWidgets ... ) ``` ## Getting Involved diff --git a/src/widgets/plotwidget.cpp b/src/widgets/plotwidget.cpp --- a/src/widgets/plotwidget.cpp +++ b/src/widgets/plotwidget.cpp @@ -27,7 +27,7 @@ , _chart(new QChartView(this)) , _axisX(new QDateTimeAxis(this)) , _axisY(new QValueAxis(this)) - , m_maximumPoints(24) + , m_maximumPoints(120) { _axisX->setTickCount(3); diff --git a/src/widgets/sdwidget.cpp b/src/widgets/sdwidget.cpp --- a/src/widgets/sdwidget.cpp +++ b/src/widgets/sdwidget.cpp @@ -36,14 +36,20 @@ newButton = new QPushButton(tr("Print Selected")); hBoxLayout->addWidget(newButton); connect(newButton, &QPushButton::clicked, [this] { - emit(printSdFile(listSdFiles->currentItem()->text())); + if (listSdFiles->currentRow() != -1) + { + emit(printSdFile(listSdFiles->currentItem()->text())); + } }); newButton = new QPushButton(tr("Delete Selected")); hBoxLayout->addWidget(newButton); connect(newButton, &QPushButton::clicked, [this] { - emit(deleteSdFile(listSdFiles->currentItem()->text())); - listSdFiles->setCurrentRow(-1); + if (listSdFiles->currentRow() != -1) + { + emit(deleteSdFile(listSdFiles->currentItem()->text())); + listSdFiles->setCurrentRow(-1); + } }); auto groupFiles = new QGroupBox(tr("Files On Sd Card"));