Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f57d24985e)
r14.1.x
Michele Calgaro 1 year ago
parent 59252e910c
commit 034ed63e8d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -65,7 +65,7 @@ CollectionFieldsDialog::CollectionFieldsDialog(Data::CollPtr coll_, TQWidget* pa
setMainWidget(page);
TQHBoxLayout* topLayout = new TQHBoxLayout(page, 0, KDialog::spacingHint());
TQGroupBox* fieldsGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Current Fields"), page);
TQGroupBox* fieldsGroup = new TQGroupBox(1, TQt::Horizontal, i18n("Current Fields"), page);
topLayout->addWidget(fieldsGroup, 1);
m_fieldsBox = new TQListBox(fieldsGroup);
m_fieldsBox->setMinimumWidth(150);
@ -109,7 +109,7 @@ CollectionFieldsDialog::CollectionFieldsDialog(Data::CollPtr coll_, TQWidget* pa
vbox->setSpacing(KDialog::spacingHint());
topLayout->addWidget(vbox, 2);
TQGroupBox* propGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Field Properties"), vbox);
TQGroupBox* propGroup = new TQGroupBox(1, TQt::Horizontal, i18n("Field Properties"), vbox);
TQWidget* grid = new TQWidget(propGroup);
// (parent, nrows, ncols, margin, spacing)
@ -223,7 +223,7 @@ CollectionFieldsDialog::CollectionFieldsDialog(Data::CollPtr coll_, TQWidget* pa
TQWhatsThis::add(m_btnExtended, whats);
connect(m_btnExtended, TQT_SIGNAL(clicked()), TQT_SLOT(slotShowExtendedProperties()));
TQButtonGroup* bg = new TQButtonGroup(1, Qt::Horizontal, i18n("Format Options"), vbox);
TQButtonGroup* bg = new TQButtonGroup(1, TQt::Horizontal, i18n("Format Options"), vbox);
m_formatNone = new TQRadioButton(i18n("No formatting"), bg);
TQWhatsThis::add(m_formatNone, i18n("This option prevents the field from ever being "
"automatically formatted or capitalized."));
@ -238,7 +238,7 @@ CollectionFieldsDialog::CollectionFieldsDialog(Data::CollPtr coll_, TQWidget* pa
"name, but only if those options are globally set."));
connect(bg, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotModified()));
TQGroupBox* optionsGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Field Options"), vbox);
TQGroupBox* optionsGroup = new TQGroupBox(1, TQt::Horizontal, i18n("Field Options"), vbox);
m_complete = new TQCheckBox(i18n("Enable auto-completion"), optionsGroup);
TQWhatsThis::add(m_complete, i18n("If checked, TDE auto-completion will be enabled in the "
"text edit box for this field."));

@ -395,7 +395,7 @@ void ConfigDialog::setupTemplatePage() {
// l1->setTextFormat(TQt::RichText);
// l->addWidget(l1);
TQGroupBox* fontGroup = new TQGroupBox(0, Qt::Vertical, i18n("Font Options"), frame);
TQGroupBox* fontGroup = new TQGroupBox(0, TQt::Vertical, i18n("Font Options"), frame);
l->addWidget(fontGroup);
row = -1;
@ -422,7 +422,7 @@ void ConfigDialog::setupTemplatePage() {
TQWhatsThis::add(lab, whats);
TQWhatsThis::add(m_fontSizeInput, whats);
TQGroupBox* colGroup = new TQGroupBox(0, Qt::Vertical, i18n("Color Options"), frame);
TQGroupBox* colGroup = new TQGroupBox(0, TQt::Vertical, i18n("Color Options"), frame);
l->addWidget(colGroup);
row = -1;

@ -377,7 +377,7 @@ Tellico::DetailedEntryItem* DetailedListView::locateItem(Data::EntryPtr entry_)
bool DetailedListView::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress
&& TQT_TQMOUSEEVENT(ev_)->button() == Qt::RightButton
&& TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton
&& obj_ == header()) {
m_headerMenu->popup(TQT_TQMOUSEEVENT(ev_)->globalPos());
return true;

@ -418,7 +418,7 @@ void EntryIconViewItem::paintText(TQPainter* p_, const TQColorGroup &cg_) {
p_->drawRoundRect(tr, 1000/tr.width(), 1000/tr.height());
p_->setPen(TQPen(cg_.highlightedText()));
} else {
if(iconView()->itemTextBackground() != Qt::NoBrush) {
if(iconView()->itemTextBackground() != TQt::NoBrush) {
p_->fillRect(tr, iconView()->itemTextBackground());
}
p_->setPen(cg_.text());

@ -50,7 +50,7 @@ ExportDialog::ExportDialog(Export::Format format_, Data::CollPtr coll_, TQWidget
TQWidget* widget = new TQWidget(this);
TQVBoxLayout* topLayout = new TQVBoxLayout(widget, 0, spacingHint());
TQGroupBox* group1 = new TQGroupBox(1, Qt::Horizontal, i18n("Formatting"), widget);
TQGroupBox* group1 = new TQGroupBox(1, TQt::Horizontal, i18n("Formatting"), widget);
topLayout->addWidget(group1, 0);
m_formatFields = new TQCheckBox(i18n("Format all fields"), group1);
m_formatFields->setChecked(false);
@ -61,7 +61,7 @@ ExportDialog::ExportDialog(Export::Format format_, Data::CollPtr coll_, TQWidget
TQWhatsThis::add(m_exportSelected, i18n("If checked, only the currently selected entries will "
"be exported."));
TQButtonGroup* bg = new TQButtonGroup(1, Qt::Horizontal, i18n("Encoding"), widget);
TQButtonGroup* bg = new TQButtonGroup(1, TQt::Horizontal, i18n("Encoding"), widget);
topLayout->addWidget(bg, 0);
m_encodeUTF8 = new TQRadioButton(i18n("Encode in Unicode (UTF-8)"), bg);
m_encodeUTF8->setChecked(true);

@ -153,7 +153,7 @@ FetchDialog::FetchDialog(TQWidget* parent_, const char* name_)
connect(m_sourceCombo, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotSourceChanged(const TQString&)));
TQWhatsThis::add(m_sourceCombo, i18n("Select the database to search"));
TQSplitter* split = new TQSplitter(Qt::Vertical, mainWidget);
TQSplitter* split = new TQSplitter(TQt::Vertical, mainWidget);
topLayout->addWidget(split);
m_listView = new GUI::ListView(split);

@ -385,7 +385,7 @@ TQString Field::formatDate(const TQString& date_) {
d = 1;
}
// rather use ISO date formatting than locale formatting for now. Primarily, it makes sorting just work.
return empty ? date_ : TQString(TQDate(y, m, d).toString(Qt::ISODate));
return empty ? date_ : TQString(TQDate(y, m, d).toString(TQt::ISODate));
// use short form
// return TDEGlobal::locale()->formatDate(date, true);
}

@ -291,7 +291,7 @@ void FilterDialog::init() {
setMainWidget(page);
TQVBoxLayout* topLayout = new TQVBoxLayout(page, 0, KDialog::spacingHint());
TQGroupBox* m_matchGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Filter Criteria"), page);
TQGroupBox* m_matchGroup = new TQGroupBox(1, TQt::Horizontal, i18n("Filter Criteria"), page);
topLayout->addWidget(m_matchGroup);
TQVButtonGroup* bg = new TQVButtonGroup(m_matchGroup);

@ -53,7 +53,7 @@ ImageWidget::ImageWidget(TQWidget* parent_, const char* name_) : TQWidget(parent
TQVBoxLayout* boxLayout = new TQVBoxLayout(l);
boxLayout->addStretch(1);
KButtonBox* box = new KButtonBox(this,Qt::Vertical);
KButtonBox* box = new KButtonBox(this,TQt::Vertical);
box->addButton(i18n("Select Image..."), TQT_TQOBJECT(this), TQT_SLOT(slotGetImage()));
box->addButton(i18n("Clear"), TQT_TQOBJECT(this), TQT_SLOT(slotClear()));
box->layout();
@ -176,7 +176,7 @@ void ImageWidget::slotLinkOnlyClicked() {
void ImageWidget::mousePressEvent(TQMouseEvent* event_) {
// Only interested in LMB
if(event_->button() == Qt::LeftButton) {
if(event_->button() == TQt::LeftButton) {
// Store the position of the mouse press.
// check if position is inside the label
if(m_label->geometry().contains(event_->pos())) {
@ -190,7 +190,7 @@ void ImageWidget::mousePressEvent(TQMouseEvent* event_) {
void ImageWidget::mouseMoveEvent(TQMouseEvent* event_) {
int delay = TQApplication::startDragDistance();
// Only interested in LMB
if(event_->state() & Qt::LeftButton) {
if(event_->state() & TQt::LeftButton) {
// only allow drag is the image is non-null, and the drag start point isn't null and the user dragged far enough
if(!m_imageID.isEmpty() && !m_dragStart.isNull() && (m_dragStart - event_->pos()).manhattanLength() > delay) {
const Data::Image& img = ImageFactory::imageById(m_imageID);

@ -111,7 +111,7 @@ void RatingWidget::update() {
void RatingWidget::mousePressEvent(TQMouseEvent* event_) {
// only react to left button
if(event_->button() != Qt::LeftButton) {
if(event_->button() != TQt::LeftButton) {
return;
}

@ -226,7 +226,7 @@ void TableFieldWidget::updateFieldHook(Data::FieldPtr, Data::FieldPtr newField_)
bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) {
if(ev_->type() == TQEvent::MouseButtonPress
&& TQT_TQMOUSEEVENT(ev_)->button() == Qt::RightButton) {
&& TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton) {
if(obj_ == m_table->horizontalHeader()) {
TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_);
// might be scrolled

@ -57,7 +57,7 @@ ImportDialog::ImportDialog(Import::Format format_, const KURL::List& urls_, TQWi
TQWidget* widget = new TQWidget(this);
TQVBoxLayout* topLayout = new TQVBoxLayout(widget, 0, spacingHint());
TQButtonGroup* bg = new TQButtonGroup(1, Qt::Horizontal, i18n("Import Options"), widget);
TQButtonGroup* bg = new TQButtonGroup(1, TQt::Horizontal, i18n("Import Options"), widget);
topLayout->addWidget(bg, 0);
m_radioReplace = new TQRadioButton(i18n("&Replace current collection"), bg);
TQWhatsThis::add(m_radioReplace, i18n("Replace the current collection with the contents "

@ -796,7 +796,7 @@ void MainWindow::initDocument() {
void MainWindow::initView() {
MARK;
m_split = new TQSplitter(Qt::Horizontal, this);
m_split = new TQSplitter(TQt::Horizontal, this);
setCentralWidget(m_split);
m_viewTabs = new GUI::TabControl(m_split);
@ -807,7 +807,7 @@ void MainWindow::initView() {
TQWhatsThis::add(m_groupView, i18n("<qt>The <i>Group View</i> sorts the entries into groupings "
"based on a selected field.</qt>"));
m_rightSplit = new TQSplitter(Qt::Vertical, m_split);
m_rightSplit = new TQSplitter(TQt::Vertical, m_split);
m_detailedView = new DetailedListView(m_rightSplit, "detailedlistview");
Controller::self()->addObserver(m_detailedView);

@ -109,7 +109,7 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_)
TQFrame* frame = plainPage();
TQBoxLayout* boxLayout = new TQVBoxLayout(frame, 0, KDialog::spacingHint());
m_split = new TQSplitter(Qt::Vertical, frame);
m_split = new TQSplitter(TQt::Vertical, frame);
boxLayout->addWidget(m_split);
m_listView = new GUI::ListView(m_split);

@ -259,7 +259,7 @@ Tellico::NewStuff::InstallStatus Manager::installStatus(KNS::Entry* entry_) {
return NotInstalled;
}
TQDate date = TQDate::fromString(datestring, Qt::ISODate);
TQDate date = TQDate::fromString(datestring, TQt::ISODate);
if(!date.isValid()) {
return NotInstalled;
}
@ -404,7 +404,7 @@ void Manager::slotInstallFinished() {
// of the newstuff entry, so we can track which entries are installed
// name and entry-name() are probably the same for scripts, but not a problem
config.writeEntry(name, entry->name());
config.writeEntry(entry->name(), TQString(entry->releaseDate().toString(Qt::ISODate)));
config.writeEntry(entry->name(), TQString(entry->releaseDate().toString(TQt::ISODate)));
config.sync();
emit signalInstalled(entry);
} else {

@ -190,7 +190,7 @@ TQWidget* AlexandriaImporter::widget(TQWidget* parent_, const char* name_/*=0*/)
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(2, Qt::Horizontal, i18n("Alexandria Options"), m_widget);
TQGroupBox* box = new TQGroupBox(2, TQt::Horizontal, i18n("Alexandria Options"), m_widget);
TQLabel* label = new TQLabel(i18n("&Library:"), box);
m_library = new KComboBox(box);
label->setBuddy(m_library);

@ -198,7 +198,7 @@ TQWidget* BibtexExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Horizontal, i18n("Bibtex Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Horizontal, i18n("Bibtex Options"), m_widget);
l->addWidget(box);
m_checkExpandMacros = new TQCheckBox(i18n("Expand string macros"), box);

@ -106,7 +106,7 @@ TQWidget* CSVExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Horizontal, i18n("CSV Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Horizontal, i18n("CSV Options"), m_widget);
l->addWidget(box);
m_checkIncludeTitles = new TQCheckBox(i18n("Include field titles as column headers"), box);
@ -114,7 +114,7 @@ TQWidget* CSVExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
TQWhatsThis::add(m_checkIncludeTitles, i18n("If checked, a header row will be added with the "
"field titles."));
TQButtonGroup* delimiterGroup = new TQButtonGroup(0, Qt::Vertical, i18n("Delimiter"), box);
TQButtonGroup* delimiterGroup = new TQButtonGroup(0, TQt::Vertical, i18n("Delimiter"), box);
TQGridLayout* m_delimiterGroupLayout = new TQGridLayout(delimiterGroup->layout());
m_delimiterGroupLayout->setAlignment(TQt::AlignTop);
TQWhatsThis::add(delimiterGroup, i18n("In addition to a comma, other characters may be used as "

@ -244,7 +244,7 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* group = new TQGroupBox(1, Qt::Horizontal, i18n("CSV Options"), m_widget);
TQGroupBox* group = new TQGroupBox(1, TQt::Horizontal, i18n("CSV Options"), m_widget);
l->addWidget(group);
TQHBox* box = new TQHBox(group);
@ -263,7 +263,7 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) {
connect(m_checkFirstRowHeader, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotFirstRowHeader(bool)));
TQHBox* hbox2 = new TQHBox(group);
m_delimiterGroup = new TQButtonGroup(0, Qt::Vertical, i18n("Delimiter"), hbox2);
m_delimiterGroup = new TQButtonGroup(0, TQt::Vertical, i18n("Delimiter"), hbox2);
TQGridLayout* m_delimiterGroupLayout = new TQGridLayout(m_delimiterGroup->layout(), 3, 3);
m_delimiterGroupLayout->setAlignment(TQt::AlignTop);
TQWhatsThis::add(m_delimiterGroup, i18n("In addition to a comma, other characters may be used as "

@ -123,13 +123,13 @@ Tellico::Data::CollPtr FileListingImporter::collection() {
if(t > 0) {
TQDateTime dt;
dt.setTime_t(t);
entry->setField(created, dt.toString(Qt::ISODate));
entry->setField(created, dt.toString(TQt::ISODate));
}
t = it.current()->time(TDEIO::UDS_MODIFICATION_TIME);
if(t > 0) {
TQDateTime dt;
dt.setTime_t(t);
entry->setField(modified, dt.toString(Qt::ISODate));
entry->setField(modified, dt.toString(TQt::ISODate));
}
const KFileMetaInfo& meta = it.current()->metaInfo();
if(meta.isValid() && !meta.isEmpty()) {

@ -486,7 +486,7 @@ TQWidget* FreeDBImporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* bigbox = new TQGroupBox(1, Qt::Horizontal, i18n("Audio CD Options"), m_widget);
TQGroupBox* bigbox = new TQGroupBox(1, TQt::Horizontal, i18n("Audio CD Options"), m_widget);
// cdrom stuff
TQHBox* box = new TQHBox(bigbox);

@ -466,7 +466,7 @@ TQWidget* HTMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Horizontal, i18n("HTML Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Horizontal, i18n("HTML Options"), m_widget);
l->addWidget(box);
m_checkPrintHeaders = new TQCheckBox(i18n("Print field headers"), box);

@ -173,7 +173,7 @@ TQWidget* ONIXExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Horizontal, i18n("ONIX Archive Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Horizontal, i18n("ONIX Archive Options"), m_widget);
l->addWidget(box);
m_checkIncludeImages = new TQCheckBox(i18n("Include images in archive"), box);

@ -207,7 +207,7 @@ TQWidget* PilotDBExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Horizontal, i18n("PilotDB Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Horizontal, i18n("PilotDB Options"), m_widget);
l->addWidget(box);
m_checkBackup = new TQCheckBox(i18n("Set PDA backup flag for database"), box);

@ -744,11 +744,11 @@ void TellicoImporter::readBorrower(const TQDomElement& elem_) {
TQDate loanDate, dueDate;
TQString s = e.attribute(TQString::fromLatin1("loanDate"));
if(!s.isEmpty()) {
loanDate = TQDate::fromString(s, Qt::ISODate);
loanDate = TQDate::fromString(s, TQt::ISODate);
}
s = e.attribute(TQString::fromLatin1("dueDate"));
if(!s.isEmpty()) {
dueDate = TQDate::fromString(s, Qt::ISODate);
dueDate = TQDate::fromString(s, TQt::ISODate);
}
Data::LoanPtr loan = new Data::Loan(entry, loanDate, dueDate, e.text());
loan->setUID(uid);

@ -461,8 +461,8 @@ void TellicoXMLExporter::exportBorrowerXML(TQDomDocument& dom_, TQDomElement& pa
lElem.setAttribute(TQString::fromLatin1("uid"), it->uid());
lElem.setAttribute(TQString::fromLatin1("entryRef"), it->entry()->id());
lElem.setAttribute(TQString::fromLatin1("loanDate"), it->loanDate().toString(Qt::ISODate));
lElem.setAttribute(TQString::fromLatin1("dueDate"), it->dueDate().toString(Qt::ISODate));
lElem.setAttribute(TQString::fromLatin1("loanDate"), it->loanDate().toString(TQt::ISODate));
lElem.setAttribute(TQString::fromLatin1("dueDate"), it->dueDate().toString(TQt::ISODate));
if(it->inCalendar()) {
lElem.setAttribute(TQString::fromLatin1("calendar"), TQString::fromLatin1("true"));
}
@ -479,7 +479,7 @@ TQWidget* TellicoXMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/)
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Horizontal, i18n("Tellico XML Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Horizontal, i18n("Tellico XML Options"), m_widget);
l->addWidget(box);
m_checkIncludeImages = new TQCheckBox(i18n("Include images in XML document"), box);

@ -71,7 +71,7 @@ TQWidget* XSLTExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* group = new TQGroupBox(1, Qt::Horizontal, i18n("XSLT Options"), m_widget);
TQGroupBox* group = new TQGroupBox(1, TQt::Horizontal, i18n("XSLT Options"), m_widget);
l->addWidget(group);
TQHBox* box = new TQHBox(group);

@ -95,7 +95,7 @@ TQWidget* XSLTImporter::widget(TQWidget* parent_, const char* name_) {
m_widget = new TQWidget(parent_, name_);
TQVBoxLayout* l = new TQVBoxLayout(m_widget);
TQGroupBox* box = new TQGroupBox(1, Qt::Vertical, i18n("XSLT Options"), m_widget);
TQGroupBox* box = new TQGroupBox(1, TQt::Vertical, i18n("XSLT Options"), m_widget);
l->addWidget(box);
(void) new TQLabel(i18n("XSLT file:"), box);

Loading…
Cancel
Save