diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-23 19:31:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-23 19:31:06 +0900 |
commit | c295d595e9249794cf3c553e452a3341103c6e09 (patch) | |
tree | 37fcf862a483278b0e06efdb320ebddd7b2856ca /krecipes/src | |
parent | c6f6aa86d3d66887d4a8384b87dca8f8b26e65b6 (diff) | |
download | krecipes-c295d595e9249794cf3c553e452a3341103c6e09.tar.gz krecipes-c295d595e9249794cf3c553e452a3341103c6e09.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'krecipes/src')
-rw-r--r-- | krecipes/src/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/backends/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/backends/MySQL/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/backends/PostgreSQL/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/backends/SQLite/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/backends/SQLite/literecipedb.cpp | 1 | ||||
-rw-r--r-- | krecipes/src/backends/qsqlrecipedb.cpp | 1 | ||||
-rw-r--r-- | krecipes/src/datablocks/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/dialogs/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/dialogs/dbimportdialog.cpp | 3 | ||||
-rw-r--r-- | krecipes/src/exporters/cookmlexporter.cpp | 1 | ||||
-rw-r--r-- | krecipes/src/exporters/kreexporter.cpp | 1 | ||||
-rw-r--r-- | krecipes/src/importers/Makefile.am | 2 | ||||
-rw-r--r-- | krecipes/src/setupwizard.cpp | 3 | ||||
-rw-r--r-- | krecipes/src/widgets/Makefile.am | 2 |
15 files changed, 11 insertions, 17 deletions
diff --git a/krecipes/src/Makefile.am b/krecipes/src/Makefile.am index 5ff36ec..77b10d5 100644 --- a/krecipes/src/Makefile.am +++ b/krecipes/src/Makefile.am @@ -6,7 +6,7 @@ bin_PROGRAMS = krecipes SUBDIRS = backends importers widgets dialogs exporters datablocks tests -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir) -I$(srcdir)/backends -I$(srcdir)/backends/SQLite $(all_includes) # the library search path. diff --git a/krecipes/src/backends/Makefile.am b/krecipes/src/backends/Makefile.am index 9ef190d..d9732a0 100644 --- a/krecipes/src/backends/Makefile.am +++ b/krecipes/src/backends/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir) -I$(srcdir)/.. $(all_includes) # Check for optional database libs diff --git a/krecipes/src/backends/MySQL/Makefile.am b/krecipes/src/backends/MySQL/Makefile.am index 193496e..7134130 100644 --- a/krecipes/src/backends/MySQL/Makefile.am +++ b/krecipes/src/backends/MySQL/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. $(all_includes) diff --git a/krecipes/src/backends/PostgreSQL/Makefile.am b/krecipes/src/backends/PostgreSQL/Makefile.am index 9295a6f..dac2623 100644 --- a/krecipes/src/backends/PostgreSQL/Makefile.am +++ b/krecipes/src/backends/PostgreSQL/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. $(all_includes) diff --git a/krecipes/src/backends/SQLite/Makefile.am b/krecipes/src/backends/SQLite/Makefile.am index 49648f6..e136dd1 100644 --- a/krecipes/src/backends/SQLite/Makefile.am +++ b/krecipes/src/backends/SQLite/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. $(all_includes) # Instructions for building the convenience library diff --git a/krecipes/src/backends/SQLite/literecipedb.cpp b/krecipes/src/backends/SQLite/literecipedb.cpp index b790bd2..defd2c2 100644 --- a/krecipes/src/backends/SQLite/literecipedb.cpp +++ b/krecipes/src/backends/SQLite/literecipedb.cpp @@ -703,7 +703,6 @@ void LiteRecipeDB::portOldDatabases( float version ) TQImageIO iio( &buffer, "JPEG" ); iio.setImage( photo ); iio.write(); - //recipe->photo.save( &buffer, "JPEG" ); don't need TQImageIO in QT 3.2 storePhoto( query.value(0).toInt(), ba ); emit progress(); diff --git a/krecipes/src/backends/qsqlrecipedb.cpp b/krecipes/src/backends/qsqlrecipedb.cpp index a7f8c8a..334a39f 100644 --- a/krecipes/src/backends/qsqlrecipedb.cpp +++ b/krecipes/src/backends/qsqlrecipedb.cpp @@ -626,7 +626,6 @@ void TQSqlRecipeDB::saveRecipe( Recipe *recipe ) TQImageIO iio( &buffer, "JPEG" ); iio.setImage( recipe->photo.convertToImage() ); iio.write(); - //recipe->photo.save( &buffer, "JPEG" ); don't need TQImageIO in QT 3.2 storePhoto( recipeID, ba ); } diff --git a/krecipes/src/datablocks/Makefile.am b/krecipes/src/datablocks/Makefile.am index 1dea3ec..e6161f7 100644 --- a/krecipes/src/datablocks/Makefile.am +++ b/krecipes/src/datablocks/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir)/.. $(all_includes) noinst_LTLIBRARIES=libdatablocks.la diff --git a/krecipes/src/dialogs/Makefile.am b/krecipes/src/dialogs/Makefile.am index a35dd6c..23f80e1 100644 --- a/krecipes/src/dialogs/Makefile.am +++ b/krecipes/src/dialogs/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and TDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir)/.. $(all_includes) KDE_CXXFLAGS = $(USE_EXCEPTIONS) diff --git a/krecipes/src/dialogs/dbimportdialog.cpp b/krecipes/src/dialogs/dbimportdialog.cpp index f756fdb..6face8a 100644 --- a/krecipes/src/dialogs/dbimportdialog.cpp +++ b/krecipes/src/dialogs/dbimportdialog.cpp @@ -189,8 +189,7 @@ void DBImportDialog::switchDBPage( int id ) TQString DBImportDialog::dbType() const { - //int id=dbButtonGroup->selectedId(); //QT 3.2 - int id = dbButtonGroup->id( dbButtonGroup->selected() ); //QT 3.1 + int id = dbButtonGroup->id( dbButtonGroup->selected() ); switch ( id ) { case 0: return "SQLite"; diff --git a/krecipes/src/exporters/cookmlexporter.cpp b/krecipes/src/exporters/cookmlexporter.cpp index f33adf5..1d9bd16 100644 --- a/krecipes/src/exporters/cookmlexporter.cpp +++ b/krecipes/src/exporters/cookmlexporter.cpp @@ -92,7 +92,6 @@ TQString CookMLExporter::createContent( const RecipeList& recipes ) TQImageIO iio( &buffer, "JPEG" ); iio.setImage( ( *recipe_it ).photo.convertToImage() ); iio.write(); - //( *recipe_it ).photo.save( &buffer, "JPEG" ); don't need TQImageIO in QT 3.2 picbin_tag.appendChild( doc.createTextNode( KCodecs::base64Encode( data, true ) ) ); head_tag.appendChild( picbin_tag ); diff --git a/krecipes/src/exporters/kreexporter.cpp b/krecipes/src/exporters/kreexporter.cpp index 1d90ad1..04c556b 100644 --- a/krecipes/src/exporters/kreexporter.cpp +++ b/krecipes/src/exporters/kreexporter.cpp @@ -113,7 +113,6 @@ TQString KreExporter::createContent( const RecipeList& recipes ) TQImageIO iio( &buffer, "JPEG" ); iio.setImage( ( *recipe_it ).photo.convertToImage() ); iio.write(); - //( *recipe_it ).photo.save( &buffer, "JPEG" ); don't need TQImageIO in QT 3.2 xml += KCodecs::base64Encode( data, true ); diff --git a/krecipes/src/importers/Makefile.am b/krecipes/src/importers/Makefile.am index c0ac8a0..28ab637 100644 --- a/krecipes/src/importers/Makefile.am +++ b/krecipes/src/importers/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../backends $(all_includes) noinst_LTLIBRARIES=libkrecipesimporters.la diff --git a/krecipes/src/setupwizard.cpp b/krecipes/src/setupwizard.cpp index 1cc2f06..07deb1a 100644 --- a/krecipes/src/setupwizard.cpp +++ b/krecipes/src/setupwizard.cpp @@ -816,8 +816,7 @@ DBTypeSetupPage::DBTypeSetupPage( TQWidget *parent ) : TQWidget( parent ) int DBTypeSetupPage::dbType( void ) { - //int id=bg->selectedId(); //QT 3.2 - int id = bg->id( bg->selected() ); //QT 3.1 + int id = bg->id( bg->selected() ); switch ( id ) { case 1: diff --git a/krecipes/src/widgets/Makefile.am b/krecipes/src/widgets/Makefile.am index 9f61705..b92e241 100644 --- a/krecipes/src/widgets/Makefile.am +++ b/krecipes/src/widgets/Makefile.am @@ -3,7 +3,7 @@ # this is the program that gets installed. it's name is used for all # of the other Makefile.am variables -# set the include path for X, qt and KDE +# set the include path for X, tqt and TDE INCLUDES = -I$(srcdir)/.. $(all_includes) noinst_LTLIBRARIES=libkrecipeswidgets.la |