1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00

Fix compilation and link under Linux

This commit is contained in:
Jon Beniston 2020-11-06 15:54:29 +00:00
parent 13db9f4d1a
commit a27226fa06
3 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // // along with this program. If not, see <http://www.gnu.org/licenses/>. //
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
#define BOOST_CHRONO_HEADER_ONLY
#include <boost/chrono/chrono.hpp> #include <boost/chrono/chrono.hpp>
#include <stdio.h> #include <stdio.h>

View File

@ -1605,7 +1605,8 @@ ADSBDemodGUI::ADSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
menu = new QMenu(ui->adsbData); menu = new QMenu(ui->adsbData);
for (int i = 0; i < ui->adsbData->horizontalHeader()->count(); i++) for (int i = 0; i < ui->adsbData->horizontalHeader()->count(); i++)
{ {
menu->addAction(createCheckableItem(ui->adsbData->horizontalHeaderItem(i)->text(), i, true)); QString text = ui->adsbData->horizontalHeaderItem(i)->text();
menu->addAction(createCheckableItem(text, i, true));
} }
ui->adsbData->horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu); ui->adsbData->horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->adsbData->horizontalHeader(), SIGNAL(customContextMenuRequested(QPoint)), SLOT(columnSelectMenu(QPoint))); connect(ui->adsbData->horizontalHeader(), SIGNAL(customContextMenuRequested(QPoint)), SLOT(columnSelectMenu(QPoint)));

View File

@ -15,6 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // // along with this program. If not, see <http://www.gnu.org/licenses/>. //
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
#define BOOST_CHRONO_HEADER_ONLY
#include <boost/chrono/chrono.hpp> #include <boost/chrono/chrono.hpp>
#include <QDebug> #include <QDebug>