mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14717 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
82a90fceb7
commit
b1bb25dbb3
@ -41,10 +41,8 @@ int prompt_pimpl(string const & tit, string const & question,
|
||||
{
|
||||
string const title = bformat(_("LyX: %1$s"), tit);
|
||||
|
||||
QWidget * const parent = qApp->focusWidget() ?
|
||||
qApp->focusWidget() : qApp->mainWidget();
|
||||
|
||||
int res = QMessageBox::information(parent,
|
||||
// FIXME replace that with theApp->gui()->currentView()
|
||||
int res = QMessageBox::information(qApp->focusWidget(),
|
||||
toqstr(title),
|
||||
toqstr(formatted(question)),
|
||||
toqstr(b1),
|
||||
@ -61,11 +59,8 @@ int prompt_pimpl(string const & tit, string const & question,
|
||||
|
||||
void warning_pimpl(string const & tit, string const & message)
|
||||
{
|
||||
QWidget * const parent = qApp->focusWidget() ?
|
||||
qApp->focusWidget() : qApp->mainWidget();
|
||||
|
||||
string const title = bformat(_("LyX: %1$s"), tit);
|
||||
QMessageBox::warning(parent,
|
||||
QMessageBox::warning(qApp->focusWidget(),
|
||||
toqstr(title),
|
||||
toqstr(formatted(message)));
|
||||
}
|
||||
@ -73,11 +68,8 @@ void warning_pimpl(string const & tit, string const & message)
|
||||
|
||||
void error_pimpl(string const & tit, string const & message)
|
||||
{
|
||||
QWidget * const parent = qApp->focusWidget() ?
|
||||
qApp->focusWidget() : qApp->mainWidget();
|
||||
|
||||
string const title = bformat(_("LyX: %1$s"), tit);
|
||||
QMessageBox::critical(parent,
|
||||
QMessageBox::critical(qApp->focusWidget(),
|
||||
toqstr(title),
|
||||
toqstr(formatted(message)));
|
||||
}
|
||||
@ -85,11 +77,8 @@ void error_pimpl(string const & tit, string const & message)
|
||||
|
||||
void information_pimpl(string const & tit, string const & message)
|
||||
{
|
||||
QWidget * const parent = qApp->focusWidget() ?
|
||||
qApp->focusWidget() : qApp->mainWidget();
|
||||
|
||||
string const title = bformat(_("LyX: %1$s"), tit);
|
||||
QMessageBox::information(parent,
|
||||
QMessageBox::information(qApp->focusWidget(),
|
||||
toqstr(title),
|
||||
toqstr(formatted(message)));
|
||||
}
|
||||
@ -98,13 +87,10 @@ void information_pimpl(string const & tit, string const & message)
|
||||
pair<bool, string> const
|
||||
askForText_pimpl(string const & msg, string const & dflt)
|
||||
{
|
||||
QWidget * const parent = qApp->focusWidget() ?
|
||||
qApp->focusWidget() : qApp->mainWidget();
|
||||
|
||||
string const title = bformat(_("LyX: %1$s"), msg);
|
||||
|
||||
bool ok;
|
||||
QString text = QInputDialog::getText(parent,
|
||||
QString text = QInputDialog::getText(qApp->focusWidget(),
|
||||
toqstr(title),
|
||||
toqstr('&' + msg),
|
||||
QLineEdit::Normal,
|
||||
|
Loading…
Reference in New Issue
Block a user