Sharp Qtopia Desktop Dokumentacja Strona 24

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 63
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 23
SHARP CORPORATION
Sharp SL-series Zaurus “Qtopia” Development Start-up Guide
Ver 1.11, February 28, 2003, 24/63
appsample.cpp (continued)
// File menu
actMenu1 = new QAction( tr( "Menu1" ), QString::null, 0, this, 0 );
connect( actMenu1, SIGNAL( activated() ), this, SLOT( slotMenu1() ) );
actMenu1->addTo(listMenuFile);
// Option menu
actMenu2 = new QAction( tr( "Menu2" ), QString::null, 0, this, 0 );
connect( actMenu2, SIGNAL( activated() ), this, SLOT( slotMenu2() ) );
actMenu2->addTo(listMenuOption);
}
AppSample::~AppSample()
{
}
void AppSample::setDocument(const QString& fileref)
{
}
void AppSample::slotMenu1()
{
QMessageBox::warning(this,tr("menu"),tr("Menu1"));
}
void AppSample::slotMenu2()
{
QMessageBox::warning(this,tr("menu"),tr("Menu2"));
}
// eof
Przeglądanie stron 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 62 63

Komentarze do niniejszej Instrukcji

Brak uwag