mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: change new file instructor position
This commit is contained in:
@@ -8,7 +8,7 @@ UpdateNotifyWidget::UpdateNotifyWidget(QWidget *) :
|
||||
ui(new Ui::UpdateNotifyWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowFlag(Qt::SubWindow);
|
||||
setWindowFlag(Qt::FramelessWindowHint);
|
||||
setAttribute(Qt::WA_ShowModal,true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,14 @@ void UpdateNotifyWidget::initialize(MainWindow *mainWindow)
|
||||
{
|
||||
this->mainWindow = mainWindow;
|
||||
currentLoadingCount = 0;
|
||||
hide();
|
||||
|
||||
auto pos = mainWindow->pos();
|
||||
pos.setY(pos.y() + 40);
|
||||
move(pos);
|
||||
// auto point = mainWindow->pos();
|
||||
// point.setY(point.y() + 100);
|
||||
// mapToParent(point);
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::addToList(FileData fileData)
|
||||
@@ -25,6 +33,39 @@ void UpdateNotifyWidget::addToList(FileData fileData)
|
||||
ui->updateListWidget->addItem(itemName);
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::showWithFill()
|
||||
{
|
||||
QString list = tr("Возможные действия:\n"
|
||||
" 1. Выгрузить изменения на сервер\n"
|
||||
" 2. Отменить изменения с загрузкой версии с сервера \n"
|
||||
" 3. Запустить без отправки файлов, но с текущими изменениями");
|
||||
|
||||
|
||||
ui->updateActionListLabel->setText(list);
|
||||
|
||||
show();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_loadToServerButton_clicked()
|
||||
{
|
||||
mainWindow->loadToServer();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_undoChangesButton_clicked()
|
||||
{
|
||||
mainWindow->undoCurrentChanges();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_startWithCurrentChangesButton_clicked()
|
||||
{
|
||||
mainWindow->startUnityClient();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::setButtonWidget(InstructorButtonGroupWidget *widget)
|
||||
{
|
||||
//ui->ButtonsLayout->addWidget(widget,0,Qt::AlignTop);
|
||||
}
|
||||
|
||||
|
||||
UpdateNotifyWidget::~UpdateNotifyWidget()
|
||||
{
|
||||
@@ -35,3 +76,5 @@ void UpdateNotifyWidget::on_closeButton_clicked()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user