예제 #1
0
PhoneInfoWidget::PhoneInfoWidget(QWidget *parent, QString serialNumber) :
    QWidget(parent),
    ui(new Ui::PhoneInfoWidget)
{
    ui->setupUi(this);
    //this->setLayout(ui->gridLayout);

    this->rotation = 0;
    this->widthScreen = 320;
    this->heightScreen = 480;
    this->screenshot = QPixmap::fromImage(noScreenshotImage(this->widthScreen, this->heightScreen), Qt::AutoColor);
    this->ui->labelRgb565->setPixmap(this->screenshot);

    //this->setLayout(ui->layoutPhoneInfo);
    ui->lineEditSerialNumber->setText(serialNumber);

    QSettings settings;
    this->sdk=settings.value("sdkPath").toString();
    ip = settings.value("wlanIP").toString();
    port = settings.value("sPort").toInt();

    //this->timer.start(60000);
    //connect(&this->timer, SIGNAL(timeout()), this , SLOT(showPhoneInfo()));

    connect(this->ui->buttonSaveScreenshot, SIGNAL(clicked()), this, SLOT(saveScreenshot()));
    connect(this->ui->buttonRefreshScreenshot, SIGNAL(clicked()), this, SLOT(refreshScreenshot()));
    showPhoneInfo();
    refreshScreenshot();
}
예제 #2
0
PhoneInfoWidget::PhoneInfoWidget(QWidget *parent, QString serialNumber) :
    QWidget(parent),
    ui(new Ui::PhoneInfoWidget)
{
    ui->setupUi(this);

    this->setLayout(ui->layoutPhoneInfo);
    ui->lineEditSerialNumber->setText(serialNumber);

    QSettings settings;
    this->sdk=settings.value("sdkPath").toString();
    this->timer.start(60000);

    connect(&this->timer, SIGNAL(timeout()), this , SLOT(showPhoneInfo()));
    showPhoneInfo();
}
예제 #3
0
void PhoneInfoWidget::on_pushButton_clicked()
{
    showPhoneInfo();
}