1111#include " backend/nvidia/updater.h"
1212
1313int main (int argc, char *argv[]) {
14- // QApplication: Widgets backend (pencere, sistem tray vb.) için gerekli
14+ // TR: QApplication, Qt Widgets tabanli uygulama omurgasini baslatir.
15+ // EN: QApplication bootstraps the Qt Widgets application runtime.
1516 QApplication app (argc, argv);
1617
17- // Uygulama meta bilgileri — Q_PROPERTY ve sistem entegrasyonunda kullanılır
18+ // TR: Bu meta bilgiler masaustu entegrasyonu ve UI kimligi icin kullanilir.
19+ // EN: These metadata values are used for desktop integration and app identity.
1820 app.setApplicationName (" ro-control" );
1921 app.setApplicationDisplayName (" ro-Control" );
2022 app.setApplicationVersion (" 0.1.0" );
@@ -29,7 +31,8 @@ int main(int argc, char *argv[]) {
2931 GpuMonitor gpuMonitor;
3032 RamMonitor ramMonitor;
3133
32- // QML motorunu başlat
34+ // TR: QML motoru, arayuz ve bagli context nesnelerini yukler.
35+ // EN: The QML engine loads the UI and injected context objects.
3336 QQmlApplicationEngine engine;
3437
3538 engine.rootContext ()->setContextProperty (" nvidiaDetector" , &detector);
@@ -39,12 +42,14 @@ int main(int argc, char *argv[]) {
3942 engine.rootContext ()->setContextProperty (" gpuMonitor" , &gpuMonitor);
4043 engine.rootContext ()->setContextProperty (" ramMonitor" , &ramMonitor);
4144
42- // QML yüklenemezse uygulamayı kapat
45+ // TR: Ana bileşen olusmazsa uygulamayi kontrollu sekilde sonlandir.
46+ // EN: Exit gracefully if the root QML component cannot be created.
4347 QObject::connect (
4448 &engine, &QQmlApplicationEngine::objectCreationFailed, &app,
4549 []() { QCoreApplication::exit (-1 ); }, Qt::QueuedConnection);
4650
47- // QML modülünden yüklemek, qrc prefix/policy farklarından etkilenmez.
51+ // TR: Modulden yukleme, qrc yol/prefix farklarina karsi daha dayaniklidir.
52+ // EN: Module-based loading is resilient to qrc path/prefix differences.
4853 engine.loadFromModule (" rocontrol" , " Main" );
4954
5055 return app.exec ();
0 commit comments