Changeset 8127 in ntrip for trunk/BNC/src/bncwindow.cpp


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r8119 r8127  
    4040
    4141#include <iostream>
     42
     43#include <QAction>
     44#include <QApplication>
     45#include <QCheckBox>
     46#include <QComboBox>
     47#include <QDialog>
     48#include <QFontDialog>
     49#include <QGridLayout>
     50#include <QHeaderView>
     51#include <QLabel>
     52#include <QLineEdit>
     53#include <QMenu>
     54#include <QMenuBar>
     55#include <QMessageBox>
     56#include <QPushButton>
     57#include <QRadioButton>
     58#include <QSpinBox>
     59#include <QTableWidgetItem>
     60#include <QTextEdit>
     61#include <QToolBar>
    4262
    4363#include <unistd.h>
     
    409429  _mountPointsTable->horizontalHeader()->resizeSection(6,5*ww);
    410430  _mountPointsTable->horizontalHeader()->resizeSection(7,5*ww);
     431#if QT_VERSION < 0x050000
    411432  _mountPointsTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     433#else
     434  _mountPointsTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     435#endif
    412436  _mountPointsTable->horizontalHeader()->setStretchLastSection(true);
    413437  _mountPointsTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
     
    439463  _cmbTable->horizontalHeader()->resizeSection(1,8*ww);
    440464  _cmbTable->horizontalHeader()->resizeSection(2,8*ww);
     465#if QT_VERSION < 0x050000
    441466  _cmbTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     467#else
     468  _cmbTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     469#endif
    442470  _cmbTable->horizontalHeader()->setStretchLastSection(true);
    443471  _cmbTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
     
    501529  _uploadTable->horizontalHeader()->resizeSection(10, 4*ww);
    502530  _uploadTable->horizontalHeader()->resizeSection(11,12*ww);
     531#if QT_VERSION < 0x050000
    503532  _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     533#else
     534  _uploadTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     535#endif
    504536  _uploadTable->horizontalHeader()->setStretchLastSection(true);
    505537  _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
     
    576608  _uploadEphTable->horizontalHeader()->resizeSection( 4,10*ww);
    577609  _uploadEphTable->horizontalHeader()->resizeSection( 5,12*ww);
     610#if QT_VERSION < 0x050000
    578611  _uploadEphTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     612#else
     613  _uploadEphTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     614#endif
    579615  _uploadEphTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    580616
     
    20772113           this, SLOT(slotMountPointsRead(QList<bncGetThread*>)));
    20782114
    2079   BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION" ("BNC_OS") ==========", true);
     2115  BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " (" BNC_OS ") ==========", true);
    20802116
    20812117  bncSettings settings;
     
    23172353  img->setPixmap(QPixmap(":ntrip-logo.png"));
    23182354  dlgLayout->addWidget(img, 0,0);
    2319   dlgLayout->addWidget(new QLabel("BKG Ntrip Client (BNC) Version "BNCVERSION), 0,1);
     2355  dlgLayout->addWidget(new QLabel("BKG Ntrip Client (BNC) Version " BNCVERSION), 0,1);
    23202356  dlgLayout->addWidget(tb,1,0,1,2);
    23212357  dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight);
Note: See TracChangeset for help on using the changeset viewer.