1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
/***************************************************************************
* copyright : (C) 2003-2012 by Pascal Brachet *
* http://www.xm1math.net/texmaker/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <QApplication>
#include <QPixmap>
#include "addtagdialog.h"
AddTagDialog::AddTagDialog(QWidget *parent)
: QDialog( parent)
{
setModal(true);
ui.setupUi(this);
QPixmap pixmap1, pixmap2;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
if (qApp->devicePixelRatio()==2)
{
pixmap1.load(":/images/trigger@2x.png");
pixmap1.setDevicePixelRatio(qApp->devicePixelRatio());
pixmap2.load(":/images/triggerbis@2x.png");
pixmap2.setDevicePixelRatio(qApp->devicePixelRatio());
}
else
{
pixmap1.load(":/images/trigger.png");
pixmap2.load(":/images/triggerbis.png");
}
#else
pixmap1.load(":/images/trigger.png");
pixmap2.load(":/images/triggerbis.png");
#endif
ui.label_4->setPixmap(pixmap1);
ui.label_5->setPixmap(pixmap2);
}
AddTagDialog::~AddTagDialog()
{
}
|