mainwindow.cpp
cpp-qt
posted: Nov, 30th 2011 | jump to bottom
#include "mainwindow.h" #include "ui_mainwindow.h" #include "windows.h" #include "QMessageBox" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->setAttribute(Qt::WA_TranslucentBackground); this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_4_clicked() { qApp->quit(); } void MainWindow::on_pushButton_clicked() { system("reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v dontdisplaylastusername /t REG_DWORD /d 1 /f"); QMessageBox::information(this,"Succes","Operation reussite"); } void MainWindow::on_pushButton_3_clicked() { system("reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v dontdisplaylastusername /t REG_DWORD /d 0 /f"); QMessageBox::information(this,"Succes","Operation reussite"); } void MainWindow::on_pushButton_2_clicked() { QMessageBox::information(this, tr("Sur le programme"), "<center><img src=\":/new/prefix1/forum233.png\"></center><b><center>Ce programme est coder par abdoules3<br></br><br></br>Dans le but d'aider le forum94<br></br><br></br>Pour entrer dans la session son taper le username<br></br><br></br><a href=\"http://www.startimes.com/f.aspx?mode=f&f=94\"><img src=\":/new/prefix1/336013217.png\"></a></center></b>"); }
3060 views




