Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/8/head
Michele Calgaro 1 year ago
parent 904b29291b
commit d56a6af0f4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -47,7 +47,7 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
hide(); hide();
setFlat(true); setFlat(true);
setToggleButton(true); setToggleButton(true);
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
setDescription(m_description); setDescription(m_description);
setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum); setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
resize(sizeHint()); resize(sizeHint());

@ -29,7 +29,7 @@
DTabWidget::DTabWidget(TQWidget *parent, const char *name) DTabWidget::DTabWidget(TQWidget *parent, const char *name)
:KTabWidget(parent, name), m_closeButton(0) :KTabWidget(parent, name), m_closeButton(0)
{ {
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
setMargin(0); setMargin(0);
loadSettings(); loadSettings();

@ -100,7 +100,7 @@ const TQPixmap& kt::FlagDB::getFlag(const TQString& country)
if (TQFile::exists(path)) { if (TQFile::exists(path)) {
if (img.load(path)) { if (img.load(path)) {
if (img.width() != preferredWidth || img.height() != preferredHeight) { if (img.width() != preferredWidth || img.height() != preferredHeight) {
const TQImage& imgScaled = img.smoothScale(preferredWidth, preferredHeight, TQ_ScaleMin); const TQImage& imgScaled = img.smoothScale(preferredWidth, preferredHeight, TQImage::ScaleMin);
if (!imgScaled.isNull()) { if (!imgScaled.isNull()) {
pixmap.convertFromImage(imgScaled); pixmap.convertFromImage(imgScaled);
break; break;

@ -63,7 +63,7 @@ namespace kt
setColumnLabels(days); setColumnLabels(days);
setRowLabels(hours); setRowLabels(hours);
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
TQFont f; TQFont f;
f.setPointSize(8); f.setPointSize(8);

Loading…
Cancel
Save