コード例 #1
0
//----------------------------------------
ChooserDialog::ChooserDialog(const QString& device, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ChooserDialog)
{
    ui->setupUi(this);
    mActiveDevice = device;

    Bundle* currBundle = BundleManager::getDefault()->getCurrentBundle();

    ui->lblBundle->setText(tr("Bundle provided by %1 (%2)")
                           .arg(currBundle->getProviderName())
                           .arg(currBundle->getPublicUrl()));

    connect(ui->btnAutoInstall, SIGNAL(clicked()), this, SLOT(onClickAutoInstall()));
}