diff --git a/generators/dvi/dviRenderer.cpp b/generators/dvi/dviRenderer.cpp index 1475fb49a..20c390320 100644 --- a/generators/dvi/dviRenderer.cpp +++ b/generators/dvi/dviRenderer.cpp @@ -25,12 +25,10 @@ #include #include #include -#include #include #include #include -#include -#include +#include #include #include @@ -280,11 +278,14 @@ void dviRenderer::showThatSourceInformationIsPresent() KDialogBase dialog(i18n("KDVI: Information"), KDialogBase::Yes, KDialogBase::Yes, KDialogBase::Yes, parentWidget, "information", true, true, KStandardGuiItem::ok()); - KVBox *topcontents = new KVBox (&dialog); - topcontents->setSpacing(KDialog::spacingHint()*2); - topcontents->setMargin(KDialog::marginHint()*2); + QWidget *topcontents = new QWidget (&dialog); + QVBoxLayout *topcontentsVBoxLayout = new QVBoxLayout(topcontents); + topcontentsVBoxLayout->setMargin(0); + topcontentsVBoxLayout->setSpacing(KDialog::spacingHint()*2); + topcontentsVBoxLayout->setMargin(KDialog::marginHint()*2); QWidget *contents = new QWidget(topcontents); + topcontentsVBoxLayout->addWidget(contents); QHBoxLayout * lay = new QHBoxLayout(contents); lay->setSpacing(KDialog::spacingHint()*2); @@ -300,6 +301,7 @@ void dviRenderer::showThatSourceInformationIsPresent() lay->addStretch(1); QSize extraSize = QSize(50,30); QCheckBox *checkbox = new QCheckBox(i18n("Do not show this message again"), topcontents); + topcontentsVBoxLayout->addWidget(checkbox); extraSize = QSize(50,0); dialog.setHelpLinkText(i18n("Explain in more detail...")); dialog.setHelp("inverse-search", "kdvi"); diff --git a/generators/dvi/dviexport.cpp b/generators/dvi/dviexport.cpp index 84c7c9643..53881f851 100644 --- a/generators/dvi/dviexport.cpp +++ b/generators/dvi/dviexport.cpp @@ -25,19 +25,19 @@ #include "dviRenderer.h" #include "debug_dvi.h" -#include -#include + #include #include #include -#include #include #include #include #include +#include #include +#include DVIExport::DVIExport(dviRenderer& parent) @@ -125,7 +125,7 @@ DVIExportToPDF::DVIExportToPDF(dviRenderer& parent, const QString& output_name) if (!input.exists() || !input.isReadable()) return; - if (KStandardDirs::findExe("dvipdfm").isEmpty()) { + if (QStandardPaths::findExecutable("dvipdfm").isEmpty()) { emit error(i18n("

Okular could not locate the program dvipdfm on your computer. This program is " "essential for the export function to work. You can, however, convert " "the DVI-file to PDF using the print function of Okular, but that will often " @@ -182,7 +182,7 @@ DVIExportToPS::DVIExportToPS(dviRenderer& parent, return; } - if (KStandardDirs::findExe("dvips").isEmpty()) { + if (QStandardPaths::findExecutable("dvips").isEmpty()) { emit error(i18n("

Okular could not locate the program dvips on your computer. " "That program is essential for the export function to work.

" "

Hint to the perplexed system administrator: Okular uses the PATH environment " diff --git a/generators/dvi/psgs.cpp b/generators/dvi/psgs.cpp index 7b49ccaca..0b7d63788 100644 --- a/generators/dvi/psgs.cpp +++ b/generators/dvi/psgs.cpp @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include