/[svn]/qsampler/trunk/src/qsamplerMainForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3849 by capela, Thu Jan 7 16:18:02 2021 UTC revision 4038 by capela, Sun May 15 18:43:41 2022 UTC
# Line 1  Line 1 
1  // qsamplerMainForm.cpp  // qsamplerMainForm.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2021, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2022, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007-2019 Christian Schoenebeck     Copyright (C) 2007-2019 Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
# Line 74  const WindowFlags WindowCloseButtonHint Line 74  const WindowFlags WindowCloseButtonHint
74  #endif  #endif
75    
76  #ifdef CONFIG_LIBGIG  #ifdef CONFIG_LIBGIG
77    #if defined(Q_CC_GNU) || defined(Q_CC_MINGW)
78  #pragma GCC diagnostic push  #pragma GCC diagnostic push
79  #pragma GCC diagnostic ignored "-Wunused-parameter"  #pragma GCC diagnostic ignored "-Wunused-parameter"
80    #endif
81  #include <gig.h>  #include <gig.h>
82    #if defined(Q_CC_GNU) || defined(Q_CC_MINGW)
83  #pragma GCC diagnostic pop  #pragma GCC diagnostic pop
84  #endif  #endif
85    #endif
86    
87  // Deprecated QTextStreamFunctions/Qt namespaces workaround.  // Deprecated QTextStreamFunctions/Qt namespaces workaround.
88  #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)  #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
# Line 126  static void qsampler_sigusr1_handler ( i Line 130  static void qsampler_sigusr1_handler ( i
130  {  {
131          char c = 1;          char c = 1;
132    
133          (::write(g_fdSigusr1[0], &c, sizeof(c)) > 0);          (void) (::write(g_fdSigusr1[0], &c, sizeof(c)) > 0);
134  }  }
135    
136  // File descriptor for SIGTERM notifier.  // File descriptor for SIGTERM notifier.
# Line 137  static void qsampler_sigterm_handler ( i Line 141  static void qsampler_sigterm_handler ( i
141  {  {
142          char c = 1;          char c = 1;
143    
144          (::write(g_fdSigterm[0], &c, sizeof(c)) > 0);          (void) (::write(g_fdSigterm[0], &c, sizeof(c)) > 0);
145  }  }
146    
147  #endif  // HAVE_SIGNAL_H  #endif  // HAVE_SIGNAL_H
# Line 221  MainForm::MainForm ( QWidget *pParent ) Line 225  MainForm::MainForm ( QWidget *pParent )
225          : QMainWindow(pParent)          : QMainWindow(pParent)
226  {  {
227          m_ui.setupUi(this);          m_ui.setupUi(this);
228    #if QT_VERSION < QT_VERSION_CHECK(6, 1, 0)
229            QMainWindow::setWindowIcon(QIcon(":/images/qsampler.png"));
230    #endif
231          // Pseudo-singleton reference setup.          // Pseudo-singleton reference setup.
232          g_pMainForm = this;          g_pMainForm = this;
233    

Legend:
Removed from v.3849  
changed lines
  Added in v.4038

  ViewVC Help
Powered by ViewVC