예제 #1
0
파일: main.cpp 프로젝트: aroraujjwal/qt3
int main( int argc, char ** argv )
{
    QApplication::setColorSpec( QApplication::ManyColor );
    QApplication a(argc, argv);

    QString home;
    if (argc > 1) {
        home = argv[1];
    } else {
	// Use a hard coded path. It is only an example.
	home = QDir( "../../doc/html/index.html" ).absPath();
    }

    HelpWindow *help = new HelpWindow(home, ".", 0, "help viewer");
    help->setCaption("Qt Example - Helpviewer");
    if ( QApplication::desktop()->width() > 400
	 && QApplication::desktop()->height() > 500 )
	help->show();
    else
	help->showMaximized();

    QObject::connect( &a, SIGNAL(lastWindowClosed()),
                      &a, SLOT(quit()) );

    return a.exec();
}
예제 #2
0
void ScannerPage::slotHelp ()
{
  QString s = "workwithscanner.html";
  HelpWindow *hw = new HelpWindow(this, s);
  hw->show();
}
예제 #3
0
/**
  * handleHelpButton()
  * Handles the help button dialog
  */
void MainWindow::handleHelpButton()
{
    HelpWindow* help = new HelpWindow();
    help->show();
}
예제 #4
0
void CSV::help ()
{
  HelpWindow *hw = new HelpWindow(this, helpFile);
  hw->show();
}
예제 #5
0
void TestPage::slotHelp ()
{
  QString s = "workwithbacktest.html";
  HelpWindow *hw = new HelpWindow(this, s);
  hw->show();
}
void MainWindow::menu_help_clicked()
{
    HelpWindow *hlp = new HelpWindow( this );
    hlp->setWindowTitle( "Help" );
    hlp->show();
}
예제 #7
0
void StocksDialog::help ()
{
    HelpWindow *hw = new HelpWindow(this, helpFile);
    hw->show();
}
예제 #8
0
void IndexDialog::help ()
{
  HelpWindow *hw = new HelpWindow(this, helpFile);
  hw->show();
}
예제 #9
0
void MainWindow::on_rules_triggered()
{
    HelpWindow *helpWind = new HelpWindow();
    helpWind->setModal(true);
    helpWind->show();
}
예제 #10
0
void Chintz_base::Help(){
  HelpWindow *help = new HelpWindow("index.html", "docs", 0, "help viewer");
  help->show(); 
}
예제 #11
0
void MainWindow::helpWindow()
{
  HelpWindow *helpWindow;
  helpWindow = new HelpWindow(this);
  helpWindow->show();
}
예제 #12
0
void FuturesDialog::help ()
{
  HelpWindow *hw = new HelpWindow(this, helpFile);
  hw->show();
}
예제 #13
0
void Preferences::slotHelp()
{
  HelpWindow *hw = new HelpWindow(this, helpFile);
  hw->show();
}