1 Star 0 Fork 0

王泓/deb_maker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LibraryGrabberWizard.cpp 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
oosman 提交于 2020-06-24 12:28 . init
#include "LibraryGrabberWizard.h"
#include <QDebug>
#include "LibraryGrabberWizardPage1.h"
#include "LibraryGrabberWizardPage2.h"
#include "LibraryGrabberWizardPage3.h"
namespace {
}
LibraryGrabberWizard::LibraryGrabberWizard(QWidget *parent)
: QWizard(parent)
{
page1 = new LibraryGrabberWizardPage1;
addPage(page1);
page2 = new LibraryGrabberWizardPage2;
addPage(page2);
page3 = new LibraryGrabberWizardPage3;
addPage(page3);
setWindowTitle("Library Helper");
}
LibraryGrabberWizard::~LibraryGrabberWizard()
{
}
void LibraryGrabberWizard::initializePage(int id)
{
if(page(id) == page1)
{
m_libraries.clear();
}
else if(page(id) == page2)
{
page2->loadTableView();
}
}
bool LibraryGrabberWizard::validateCurrentPage()
{
if(currentPage() == page2)
{
int pid = page2->selectedPid();
if(pid > -1)
{
page3->setPid(pid);
return true;
}
else
{
return false;
}
}
else if(currentPage() == page3)
{
m_libraries = page3->selectedLibraries();
}
return true;
}
void LibraryGrabberWizard::accept()
{
QWizard::accept();
emit selectedLibraries(m_libraries);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kuletco/deb_maker.git
git@gitee.com:kuletco/deb_maker.git
kuletco
deb_maker
deb_maker
master

搜索帮助