diff --git a/minikube.pro b/minikube.pro index 6db0902..4b3c169 100644 --- a/minikube.pro +++ b/minikube.pro @@ -18,6 +18,7 @@ SOURCES = src/main.cpp \ src/basicview.cpp \ src/cluster.cpp \ src/commandrunner.cpp \ + src/constants.cpp \ src/errormessage.cpp \ src/fonts.cpp \ src/hyperkit.cpp \ diff --git a/src/constants.cpp b/src/constants.cpp new file mode 100644 index 0000000..dcb53be --- /dev/null +++ b/src/constants.cpp @@ -0,0 +1,25 @@ +/* +Copyright 2023 The Kubernetes Authors All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +#include "constants.h" + +const QString Constants::startIcon = "\uf04b"; +const QString Constants::stopIcon = "\uf04d"; +const QString Constants::pauseIcon = "\uf04c"; +const QString Constants::unPauseIcon = "\uf04b"; +const QString Constants::deleteIcon = "\uf1f8"; +const QString Constants::reloadIcon = "\uf021"; +const QString Constants::createIcon = "\uf0fe"; diff --git a/src/constants.h b/src/constants.h index d9a1246..fb80616 100644 --- a/src/constants.h +++ b/src/constants.h @@ -24,13 +24,13 @@ class Constants public: const static int basicViewHeight = 300; const static int basicViewWidth = 250; - inline static const QString startIcon = "\uf04b"; - inline static const QString stopIcon = "\uf04d"; - inline static const QString pauseIcon = "\uf04c"; - inline static const QString unPauseIcon = "\uf04b"; - inline static const QString deleteIcon = "\uf1f8"; - inline static const QString reloadIcon = "\uf021"; - inline static const QString createIcon = "\uf0fe"; + static const QString startIcon; + static const QString stopIcon; + static const QString pauseIcon; + static const QString unPauseIcon; + static const QString deleteIcon; + static const QString reloadIcon; + static const QString createIcon; }; #endif // CONSTANTS_H