/***************************************************************************
 *   copyright       : (C) 2003-2024 by Pascal Brachet                     *
 *   https://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.                                   *
 *                                                                         *
 *   @license GPL-2.0+ <https://spdx.org/licenses/GPL-2.0+.html>           *
 ***************************************************************************/

#include <QApplication>
#include <QPixmap>
#include "addtagdialog.h"


AddTagDialog::AddTagDialog(QWidget *parent)
    : QDialog( parent)
{
setModal(true);
ui.setupUi(this);
QPixmap pixmap1, pixmap2;

if (qApp->devicePixelRatio()>=2)
  {
  pixmap1.load(":/datas/images/trigger@2x.png");
  pixmap1.setDevicePixelRatio(qApp->devicePixelRatio());
  pixmap2.load(":/datas/images/triggerbis@2x.png");
  pixmap2.setDevicePixelRatio(qApp->devicePixelRatio());
  }
else 
  {
  pixmap1.load(":/datas/images/trigger.png");
  pixmap2.load(":/datas/images/triggerbis.png");
  }

ui.label_4->setPixmap(pixmap1);
ui.label_5->setPixmap(pixmap2);
}
AddTagDialog::~AddTagDialog()
{
}

