projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #940 by updating the div spin boxes when needed
[pulseview.git]
/
pv
/
view
/
viewitempaintparams.hpp
diff --git
a/pv/view/viewitempaintparams.hpp
b/pv/view/viewitempaintparams.hpp
index 354d8c5cfe3edc976df6e83645712453f4e8a683..9f2125c86159271ab981df0b46e2d201eac6bdc4 100644
(file)
--- a/
pv/view/viewitempaintparams.hpp
+++ b/
pv/view/viewitempaintparams.hpp
@@
-14,8
+14,7
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMPAINTPARAMS_HPP
*/
#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMPAINTPARAMS_HPP
@@
-76,6
+75,12
@@
public:
return (offset_ / scale_).convert_to<double>();
}
return (offset_ / scale_).convert_to<double>();
}
+ bool next_bg_colour_state() {
+ const bool state = bg_colour_state_;
+ bg_colour_state_ = !bg_colour_state_;
+ return state;
+ }
+
public:
static QFont font();
public:
static QFont font();
@@
-85,6
+90,7
@@
private:
QRect rect_;
double scale_;
pv::util::Timestamp offset_;
QRect rect_;
double scale_;
pv::util::Timestamp offset_;
+ bool bg_colour_state_;
};
} // namespace TraceView
};
} // namespace TraceView