Drop TQT_NO_COMPAT code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9f0e52d96c)
r14.1.x
Michele Calgaro 1 year ago
parent ce4fd3080b
commit f4a2035286
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1,10 +1,3 @@
/*
* This source code refers to the MacStyle style. It is marked as obsolete
* in tqnamespace.h and is not defined when TQT_NO_COMPAT is set.
* Therefore, TQT_NO_COMPAT is forced to be canceled here.
*/
#undef TQT_NO_COMPAT
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
@ -2893,10 +2886,6 @@ int LiquidStyle::styleHint(StyleHint sh,
{ {
switch (sh) switch (sh)
{ {
case TQStyle::SH_GUIStyle:
// if (w && ::tqt_cast<TQMenuBar*>(w))
// return WindowsStyle;
return MacStyle;
case TQStyle::SH_TabBar_Alignment: case TQStyle::SH_TabBar_Alignment:
if (optionHandler->CenterTabs() && !TQApplication::reverseLayout()) if (optionHandler->CenterTabs() && !TQApplication::reverseLayout())
return AlignHCenter; return AlignHCenter;

Loading…
Cancel
Save