X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;ds=sidebyside;f=help%2Fhelp.cpp;fp=help%2Fhelp.cpp;h=180e54832f344824d1e01df499cf02c6c3f1512b;hb=e702805740237c3ce3bc4c5de9466d3f0d630595;hp=1b3cb3cc49dcd22c16de195cced40be340c9a8f3;hpb=9db87b545def5d31a64608f2eb082d915ad5efa4;p=vlp.git diff --git a/help/help.cpp b/help/help.cpp index 1b3cb3c..180e548 100644 --- a/help/help.cpp +++ b/help/help.cpp @@ -341,7 +341,7 @@ QHTML::QHTML(char *d) pp->insertItem("User Guide",this,SLOT(user_guide())); pp->insertItem("Language reference",this,SLOT(lang_guide())); pp->setFont(f); - pp->setStyle(WindowsStyle); + //pp->setStyle(WindowsStyle); bar->insertItem("File",this,SLOT(load())); bar->insertItem("Contents",pp); bar->insertItem("Quit",app,SLOT(quit())); @@ -379,7 +379,7 @@ void QHTML::load() if ( !s.isNull()) { vscroll->setValue(0); - analyzer->LoadFile(s.data()); + analyzer->LoadFile((char*)s.ascii()); analyzer->PackLinks(); DrawList(); } @@ -439,7 +439,7 @@ void QHTML::mousePressEvent(QMouseEvent *ev) if (poms.data()[0]=='#') { poms=poms.right(poms.length()-1); - pom1=analyzer->FindAnchor(poms.data()); + pom1=analyzer->FindAnchor((char*)poms.ascii()); if (pom1!=NULL) { vscroll->setValue(pom1->y); @@ -559,8 +559,8 @@ int main( int argc, char **argv ) app = new QApplication(argc,argv); if (argc==2) ps.sprintf(argv[1]); else ps.sprintf("."); - QHTML cfg(ps.data()); - app->setStyle(WindowsStyle); + QHTML cfg((char*)ps.ascii()); + //app->setStyle(WindowsStyle); app->setMainWidget(&cfg); cfg.show(); return app->exec();