Forgot change methods.
--HG-- branch : develop
This commit is contained in:
parent
490ba2ba8c
commit
4d171184bd
|
@ -11,7 +11,7 @@ before_install:
|
||||||
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
|
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -y qtbase5-dev libqt5svg5-dev ccache qt5-default qttools5-dev-tools libqt5xmlpatterns5-dev
|
- sudo apt-get install -y qtbase5-dev libqt5svg5-dev ccache qt5-default qttools5-dev-tools libqt5xmlpatterns5-dev
|
||||||
- sudo apt-get install -y libqt5core5 libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 libstdc++6 xpdf
|
- sudo apt-get install -y libqt5core5 libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 xpdf
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
|
|
|
@ -93,7 +93,7 @@ QString DialogSaveLayout::FileName() const
|
||||||
QString DialogSaveLayout::Formate() const
|
QString DialogSaveLayout::Formate() const
|
||||||
{
|
{
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
||||||
return ui->comboBoxFormat->currentData(ui->comboBoxFormat->currentIndex()).toString();
|
return ui->comboBoxFormat->itemData(ui->comboBoxFormat->currentIndex()).toString();
|
||||||
#else
|
#else
|
||||||
return ui->comboBoxFormat->currentData().toString();
|
return ui->comboBoxFormat->currentData().toString();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -217,7 +217,7 @@ void DialogLine::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
quint32 DialogLine::GetFirstPoint() const
|
quint32 DialogLine::GetFirstPoint() const
|
||||||
{
|
{
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
||||||
return qvariant_cast<quint32>(ui->comboBoxFirstPoint->currentData(ui->comboBoxFirstPoint->currentIndex()));
|
return qvariant_cast<quint32>(ui->comboBoxFirstPoint->itemData(ui->comboBoxFirstPoint->currentIndex()));
|
||||||
#else
|
#else
|
||||||
return qvariant_cast<quint32>(ui->comboBoxFirstPoint->currentData());
|
return qvariant_cast<quint32>(ui->comboBoxFirstPoint->currentData());
|
||||||
#endif
|
#endif
|
||||||
|
@ -231,7 +231,7 @@ quint32 DialogLine::GetFirstPoint() const
|
||||||
quint32 DialogLine::GetSecondPoint() const
|
quint32 DialogLine::GetSecondPoint() const
|
||||||
{
|
{
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
||||||
return qvariant_cast<quint32>(ui->comboBoxSecondPoint->currentData(ui->comboBoxSecondPoint->currentIndex()));
|
return qvariant_cast<quint32>(ui->comboBoxSecondPoint->itemData(ui->comboBoxSecondPoint->currentIndex()));
|
||||||
#else
|
#else
|
||||||
return qvariant_cast<quint32>(ui->comboBoxSecondPoint->currentData());
|
return qvariant_cast<quint32>(ui->comboBoxSecondPoint->currentData());
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user